Its quite basic question, i dont use normally excel and thats why i am struggling. I have labeling data in excel like the picture attached.
Is there any way to fill the vlaues in blank spaces like this:
There are many thousands of rows and i cant fill manually. Any help?
The easiest solution will be to double click on the highlighted.
You can use this way:
Goto special(ctrl+G) -> select blankcell
Use [value code] header column in your image then input the formula as gif
Ctrl + enter -> Copy -> paste as value
If your original data is like first image: just double click on right spot marked
you can use a helper column, and drag the formula to END of data. The formula I've used is =IF(B5<>"";B5;IF(C5<>"";A4;""))
This is what I got after applying formula. Just paste values after that, and delete original column.
Related
I am trying to autofill cells with functions by dragging the first function I have down a lot of cells.
Currently, I have this function:
=IF(A30=A2,A2,"")
and when I drag, it becomes this:
=IF(A31=A3,A3,"")
but I want this:
=IF(A31=A2,A2,"")
I tried typing in a view previous boxes and then dragging the formula, however, then it just jumps to totally different conclusions that I don't want.
I also have a similar issue where I am copy pasting formulas, and I want it to keep the same column for one value, but not for the other:
Copied:
=IF(N7="","",B6)
Pasted Result:
=IF(P7="","",D6)
Wanted Pasted Result:
=IF(P7="","",B6)
Anything would help. Otherwise, I have to go through 40 columns by 200 rows by hand. Thanks!
You can add $ signs before the column and/or the row to achieve what you want. Your first example:
=IF(A31=A$2, A$2, "")
Try locking the row of the original A2 with a $ like A$2.
=IF(A30=A$2, A$2, "")
This is known as an absolute row, relative column. When dragged right column A will still shift to column B, column C, etc unless you lock the column as absolute as well (e.g. $A$2).
I have the following on Sheet1:
Then on Sheet2, I have data. Following is the image.
I want to read the today's and tomorrow's for all the fruits from Sheet2 to Sheet1
I tried vlookup, but it didn't give me a right answer. It was confusing. I also tried to incorporate an if statement with the vlookup, but that made it more confusing.
If you data is consistent, you can use this formula =IF(C$2="Today",INDEX(Sheet2!$D$3:$D$800,MATCH($B3,Sheet2!$B$3:$B$800,0)),INDEX(Sheet2!$D$3:$D$800,MATCH($B3,Sheet2!$B$3:$B$800,0)+1)) in cell C3. drag formula below whole table...
Maybe there is way to match with blank cells in between, but the best practice is to fill out those blanks to save your time and make the formula clean, moreover, it is very easy with this trick:
First, highlight the column (ie. B1 to B6), and then go Home > Editing > Find & Select > Go To Special > Blanks > OK, =, upper arrow key, Ctrl + Enter. This way it will fill out all the blanks with the most available text in it.
Then you can perform this easy formula to do the subtotal task:
=SUMIFS($I$3:$I$13,$G$3:$G$13,$B3,$H$3:$H$13,C$2)
Please note that I put everything in the same tab to show you how this is being done. You should change those ranges accordingly based on your data setup. This way, you can have more data and different criteria be added on and still get the correct answer as I have shown you in the above screenshot.
I am trying to prep some zip codes to go into the WHERE clause of a SQL query:
WHERE [Zip_code] IN ()
To do this I put all the values into Excel and want to concatenate the zip codes with an apostrophe at the beginning and an apostrophe, a comma, and a space at the end so 99508 would become '99508', . So I wrote the equation
=Concatenate("'",D2,"', ") where D2 is the zipcode. It worked for the top row producing '99058', but when I filled down it still showed the value for D2
To make matters more confusing, when I click on the cells and see the formulas, they are tracking the proper cells but still show data for the top row
I have tried everything that I can think of to solve the problem: reformatting everything as text, formatting the zipcodes as Numbers rather than text, putting the text in the adjoining columns (C2 has an apostrophe, D2 has the Zip code, E2 has apostrophe, comma, and space) and concatenating, using & instead of concatenate ("'"&D2&"', " ), concatenating A on the front and B on the end to do a find and replace, but I still get the same result. If I select a concatenated cell, click on the formula bar, and press enter the cell shows the proper concatenation, but I would rather not do that for every single cell.
My co-worker suggests including that the zip codes were taken from pivot table outputs.
Any suggestions?
Turns out that calculations had somehow been set to manual instead of automatic.
Switching back to automatic solved the problem.
use this instead
=concatenate("'";D2;"',")
idk if gonna work on you sheet, bc i have in spanish my MS-office suite
but if doesn't work, replace the ; for ,
if you copy the formula to the other cells, this must change to the next row
First is clear the worksheet format
secondly, click on file on the excel, then to option, to formula after formula, check the position of the calculation. if its in automatic change it back to Manual and then change it back to automatic. That will solve it.
I want to take the left 5 characters of each cell in column E and put them into the adjoining cell in column F:
A...B....C...D......E..................F
123.bb...cc..dd.....90210ABCE13........90210
555.bb...cc..dd.....10056Z19s..........10056
Using Left(x, 5) function, how does Excel say "do this to every cell in the specified column"?
1) Put =Left(E1,5) in F1
2) Copy F1, then select entire F column and paste.
I find, if the data is imported, you may need to use the trim command on top of it, to get your details.
=LEFT(TRIM(B2),8)
In my case, I was using it to find a IP range. 10.3.44.44 with mask 255.255.255.0, so response is: 10.3.44
Kind of handy.
Have you tried using the "auto-fill" in Excel?
If you have an entire column of items you put the formula in the first cell, make sure you get the result you desire and then you can do the copy/paste, or use auto fill which is an option that sits on the bottom right corner of the cell.
You go to that corner in the cell and once your cursor changes to a "+", you can double-click on it and it should populate all the way down to the last entry (as long as there are no populated cells, that is).
I've sorted a chunk of data into sub-totaled fields using the Subtotal tool under the Data tab. However, you are only able to choose one formula to apply.
How can I apply a separate formula to one of the columns based on SUBTOTAL(1,RANGE)? So far I have populated it with Subtotal (9,RANGE), but is there a quicker method to select all of these and change the "9" to a "1"?
Select the column.
Press CTRL+H.
Find What: SUBTOTAL(9
Replace with: SUBTOTAL(1
Click Replace All
Assume your formulae are in the range A1:A5
Open up the VBE by hitting Alt+F11, and enter the following code in a general module of the same workbook
Function GetFormula(Cell As Range) As String
GetFormula = Cell.Formula
End Function
I have got this code from http://dmcritchie.mvps.org/excel/formula.htm
For instructions on how to insert this code in a module, see the 'Where to put the code' section at http://www.cpearson.com/excel/writingfunctionsinvba.aspx
Now, you can extract the formula. Use this formula in a helper column, say column B
=SUBSTITUTE(GetFormula(A1),"(1,","(9,")
Now copy this formula upto where you need, and copy-paste values only back where required.
You can also use this trick to modify any other formulae you need, so I suggest you keep this snippet of code handy :)
Change first or last cell then copy it
select all other cells(you can use Ctrl+Shift+up, down, left or right) then use past special and chose formulas