SOLVED

IF cell is empty

Copper Contributor

I have to upload a spreadsheet and all cells must have something in them. So I want to fill in all blank cells in column A with "A", column B with "B", etc. but if a cell has data I want to leave it alone.

I am using this formula, but it's returning zero in all cells.:
=IF(ISBLANK(A1),"A",A1)

I have allowed circular iteration so I am not getting an error, just a 0 all the time. 

What am i doing wrong?

5 Replies

I am unsure about what you are doing wrong. Your formula works for me. If having the column letter replacing the cells is not important but just having something in each cell you can try to simply use the replace function. To do this simply keep the "Find what" box empty and insert whatever you want in the "Replace with" box. 

Well I don't know what I've done now. It's not calculating any formulas at all. It just shows the formula. 

I've got this in the cell B3: =IF(ISBLANK(A3),"A",A3) and that is what it says, no calculation. 

 

 

 

best response confirmed by JerryTDS (Copper Contributor)
Solution

Instead of a formula, use the Goto/special function to select the blanks and then type the A, B, C, etc. Select Column A, then hit F5, then click the 'Special...' button, choose the "Blanks" option, then 'OK'. This highlights the blank cells only and all you have to do is type A and Ctrl+Enter. Repeat for the next columns. 

That works great! Thank you!

 

It wasn't calculating because at some point I had changed these to text format cells. (I did that because some of the cells have dates and the calculation was messing up the dates.)

 

Also, I think I was getting zeros because it would only return a letter ('A' for example) if the cell was empty, but the cell had a formula in it so it wasn't empty? I suppose you would need to have another blank column "B" that performs the calculation on "A" column. 

 

But the F5 trick works like a charm.

 

 

1 best response

Accepted Solutions
best response confirmed by JerryTDS (Copper Contributor)
Solution

Instead of a formula, use the Goto/special function to select the blanks and then type the A, B, C, etc. Select Column A, then hit F5, then click the 'Special...' button, choose the "Blanks" option, then 'OK'. This highlights the blank cells only and all you have to do is type A and Ctrl+Enter. Repeat for the next columns. 

View solution in original post