Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I get the blank cells in excell to fill in with 0?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default How do I get the blank cells in excell to fill in with 0?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How do I get the blank cells in excell to fill in with 0?

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default How do I get the blank cells in excell to fill in with 0?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill Blank cells in a range kevcar40 Excel Discussion (Misc queries) 2 March 27th 07 04:17 PM
Fill in blank cells Ian Excel Discussion (Misc queries) 3 December 15th 06 08:06 AM
macro to fill blank cells Sunny Links and Linking in Excel 1 March 24th 06 09:09 AM
FILL IN BLANK CELLS Charles Excel Discussion (Misc queries) 2 August 8th 05 07:07 PM
Fill blank cells jenny Excel Discussion (Misc queries) 2 January 7th 05 02:33 PM


All times are GMT +1. The time now is 10:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"