Hi Gordom,
Hallo everyone.
Some columns in my spreadsheet are filed with data only partly (some
cells are blank). I need to put "0" value in this empty rows. Of
course I can add an extra column and use a formula like this one for
example =IF(ISBLANK(cell_address);"0";cell_address)
Note that this puts a text string of "0" in the cell, not the number
zero. For that you would want the double quotes around the zero
removed, like so:
=IF(ISBLANK(cell_address);0;cell_address)
But I was wondering if this task can be accomplished without adding
(even temporarily) additional column. Is there a way to use formula
(like the above one or any other) together with Find & Replace
function in the Edit menu?
Sure. Select the cell range you want to do the substitution on
(otherwise it will do find and replace on the whole sheet!), and go to
"Find & Replace". In the dialog, make sure the "Current selection
only" option under "Other Options" is checked. Leave the "Search for"
field empty, and put a zero in the "Replace with" field, then click
"Replace All". Simple.
Note that for some reason, this always seems to replace the blank cells
with the text string "0", I can't seem to get it to replace with an
actual zero. Maybe someone else knows: is there an opposite of the
apostrophe "operator", one that marks input as a number? Or some way to
tell "Find & Replace" to replace with numbers instead of text?