empty cell find and put in 0

S

Steved

Hello from Steved

I have a spreadsheet A1:T10919
Question if a cell is empty how do I write a formula that
will search for a blank cell and put in 0
TIA
 
S

Steved

Hello James Thankyou it works like a treat
Cheers
-----Original Message-----
Your Cell T10919 will need "something - In - It" - if so, then use:

Sub Macro3()
' Macro3 Macro
' Macro recorded 7/15/2003 by James May

Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.FormulaR1C1 = "=0"
End Sub

HTH




.
 
G

Gord Dibben

Steve

A non-programming method would be to select the range A1:T10919

Edit>Go To>Special>Blanks. With blanks still selected enter a 0 in the active
cell.

Hit CRTL + ENTER.

Gord Dibben Excel MVP - XL97 SR2 & XL2002
 
T

Tim Zych

Or even Edit => Replace: <blank> with 0


Gord Dibben said:
Steve

A non-programming method would be to select the range A1:T10919

Edit>Go To>Special>Blanks. With blanks still selected enter a 0 in the active
cell.

Hit CRTL + ENTER.

Gord Dibben Excel MVP - XL97 SR2 & XL2002
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top