[Calc] Formula and Find & Replace menu bar function

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)
It works perfectly fine.

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? Or maybe there are other ways to reach the goal (not related to Find & Replace function)? I would appreciate any clues. Regards,

gordom

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?

o Type zero in an empty cell.
o Copy the zero.
o Select the (partially filled) cell range you wish to treat.
o Go to Edit | Paste Special... (or right-click | Paste Special... or Ctrl+Shift+V).
o In the Paste Special dialogue, under Operations, select Add.
o (Delete the zero.)

Alternatively, you may want to consider the simpler solution of modifying any formulae that refer to these cells to treat empty cell data as if it were zero. It's generally possible to do this. But that may not be suitable if the columns you describe are part of a final printout, say, of your spreadsheet.

I trust this helps.

Brian Barker

W dniu 2013-11-16 20:35, Brian Barker pisze:

o Type zero in an empty cell.
o Copy the zero.
o Select the (partially filled) cell range you wish to treat.
o Go to Edit | Paste Special... (or right-click | Paste Special... or
Ctrl+Shift+V).
o In the Paste Special dialogue, under Operations, select Add.
o (Delete the zero.)

Your approach Brian is very nice also. Thanks for you help.
Regards,
gordom