Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have an excell sheet and I want blank cells to automatically fill in with a
"0". I have tried formating, but that dose't work. I have tried a formula, that works, but if the cells are filled in the the formula is gone. If I save this sheet and use it again then the "0" will be gone with a formula. This is driving me crazy. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Do you really want to fill all blank cells with a zero because it will take a very long time to check and then fiill the 16.7 million cells on a 2003 worksheet. If you have lots of patience then the code below will do it but I suspect you need to clarify. Sub fillit() For y = 1 To 65536 For x = 1 To 256 If Cells(y, x).Value = "" Then Cells(y, x).Value = 0 End If Next Next End Sub Mike "CrazyBOBO" wrote: I have an excell sheet and I want blank cells to automatically fill in with a "0". I have tried formating, but that dose't work. I have tried a formula, that works, but if the cells are filled in the the formula is gone. If I save this sheet and use it again then the "0" will be gone with a formula. This is driving me crazy. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If the cells are really empty, you can select the range that should be 0's
(include as many non-empty cells as you want)... Then Edit|Goto|Special|check blanks Notice that just the empty cells in that original selection are now selected then type 0 and hit ctrl-enter to fill all the cells in the selection. I'm not sure how a formula fits into this. Maybe you want to change the formula so that it looks like this: =if(SomeCellIsEmpty,0,YourFormulaHere) =if(a1="",0,3+a1*5) CrazyBOBO wrote: I have an excell sheet and I want blank cells to automatically fill in with a "0". I have tried formating, but that dose't work. I have tried a formula, that works, but if the cells are filled in the the formula is gone. If I save this sheet and use it again then the "0" will be gone with a formula. This is driving me crazy. -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Or maybe do an EditReplace with Replace: 0 (leave find box blank).
On 12 Apr, 09:22, CrazyBOBO wrote: I have an excell sheet and I want blank cells to automatically fill in with a "0". I have tried formating, but that dose't work. I have tried a formula, that works, but if the cells are filled in the the formula is gone. If I save this sheet and use it again then the "0" will be gone with a formula. This is driving me crazy. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Fill Blank cells in a range | Excel Discussion (Misc queries) | |||
Fill in blank cells | Excel Discussion (Misc queries) | |||
macro to fill blank cells | Links and Linking in Excel | |||
FILL IN BLANK CELLS | Excel Discussion (Misc queries) | |||
Fill blank cells | Excel Discussion (Misc queries) |