filling in blank cells

Burdette

Board Regular
Joined
Mar 26, 2007
Messages
143
I receive spreadsheets to analyze having several blank cells. The cells really need to be filled with a 0 or sometimes a 0% - either way every cells need data before I can analysis. What is the fastest and easy way to input data into those blank cells?

I have copied and inserted rows of data and used an IF statement, and that does put data in the blank cell, but where there is data in the cell it either blanks it out or replaces it with what I have in the right side of the IF statement.

I am hoping to find a way to replace those blank cells in a better and more efficient way.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You landed up in the wrong spot, but try this:

Alt+F11, Insert>Module, and paste this code --
Code:
Sub FillBlanks()
  Range("A1").CurrentRegion.SpecialCells(xlCellTypeBlanks).Value=0
End Sub
To run the code, activate the spreadsheet, press Alt+F8, and double-click the macro name

Denis
 
Upvote 0
Thanks....I would have never thought of doing that.
The old guy appreciates it..it will save me lots of time.
 
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,730
Members
449,333
Latest member
Adiadidas

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top