Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Zeros if cell is blank
I would like to be able to select a portion of my spread sheet and then have
a macro that would search every cell in the selected area: if the cell is blank I would want a ZERO to be placed in that cell but if the cell contains a number/text that cell would be left as is. Thanks |
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Zeros if cell is blank
You can record a macro when you do this:
Select the range Edit|Goto (or hit F5 or ctrl-g)|Special|check blanks|ok type 0 and ctrl-enter to fill all those empty (really empty) cells with 0's. Or you could record a macro when you: select the range edit|replace what: (leave blank) with: 0 replace all Either of these should be quicker than looking through each cell in the range. pcor wrote: I would like to be able to select a portion of my spread sheet and then have a macro that would search every cell in the selected area: if the cell is blank I would want a ZERO to be placed in that cell but if the cell contains a number/text that cell would be left as is. Thanks -- Dave Peterson |
#3
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Zeros if cell is blank
You are absolutely right sure beat a macro
THANKS "Dave Peterson" wrote: You can record a macro when you do this: Select the range Edit|Goto (or hit F5 or ctrl-g)|Special|check blanks|ok type 0 and ctrl-enter to fill all those empty (really empty) cells with 0's. Or you could record a macro when you: select the range edit|replace what: (leave blank) with: 0 replace all Either of these should be quicker than looking through each cell in the range. pcor wrote: I would like to be able to select a portion of my spread sheet and then have a macro that would search every cell in the selected area: if the cell is blank I would want a ZERO to be placed in that cell but if the cell contains a number/text that cell would be left as is. Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Averaging blank or cells with Zeros in them. | Excel Worksheet Functions | |||
Replacing blank cells with zeros | Excel Discussion (Misc queries) | |||
How do I remove zeros from a linked blank cell? | Excel Discussion (Misc queries) | |||
Place zeros in blank cells | Excel Discussion (Misc queries) | |||
sum of blank cells returns zeros | Excel Worksheet Functions |