How to fill blank cells with 0 or other specific value in Excel?
Supposing you have a large worksheet which is populated with hundreds of blank cells, and now you would like to fill the blank cells with a specific value you like, such as the number of 0. Of course, you can fill them manually or copy and paste one by one, but this is not a good choice for filling large blank cells. Today, I will introduce you some quick tricks to solve this problem.
Fill blank cells with 0 or other specific value with Go To Special function
Fill blank cells with 0 or other specific value with VBA code
Fill blank cells with 0 or other specific value quickly with Kutools for Excel
Fill blank cells with value above / below / right / left with Kutools for Excel
Fill blank cells with 0 or other specific value with Go To Special function
With Go To Special function, you can fill blank cells with whatever values you want.
1. Select the range that you want to fill blank cells.
2. Click Home > Find & Select > Go To Special…to open the Go To Special dialog box. Then choose Blanks option from Select section. See screenshot:
3. Then click OK. All of the blank cells will be selected. Please don’t do anything just input the number or text you want, and then press Ctrl + Enter keys together, and all of the blank cells have been filled with the text “null”. See screenshots:
![]() |
![]() |
![]() |
Of course you can fill these selected blank cells with the number of 0 too.
Fill blank cells with 0 or other specific value with VBA code
Also you can apply the following VBA code to fill blank cells with specific value. Please do as follows:
1. Highlight the range contains multiple blank cells.
2. Click Developer > Visual Basic, a new Microsoft Visual Basic for applications window will be displayed, click Insert > Module, then copy and paste the following code into the Module:
Sub FillEmptyBlankCellWithValue() Dim cell As Range Dim InputValue As String On Error Resume Next InputValue = InputBox("Enter value that will fill empty cells in selection", _ "Fill Empty Cells") For Each cell In Selection If IsEmpty(cell) Then cell.Value = InputValue End If Next End Sub
3. Click button to run the code, and a prompt box will appear. You can input any value into the blank box that you need. See screenshot:
Tips: If you need to fill blank cells with the number of 0, you need to enter the 0 in this dialog box.
4. And then click OK to end this procedure. And the specified value has been inserted into the blank cells at once.
Fill blank cells with 0 or other specific value quickly with Kutools for Excel
If you have installed Kutools for Excel, its Fill Blank Cells…function can help you to quickly and conveniently fill blank cells with values, with linear values or with fixed value.
Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. |
After installing Kutools for Excel, please do as follows:
1. Click Kutools > Insert > Fill Blank Cells, see screenshot:
2. Select the range that you want to fill the blank cells, and in the Fill Blank Cells dialog box,check Fixed Value from the Fill With option and enter the specific value or text in the Filled Value box, see screenshot:
3. Then click OK or Apply. All of the blank cells have been filled with the specified value. see screenshots:
![]() |
![]() |
![]() |
Click to Download and free trial Kutools for Excel Now!
Fill blank cells with value above / below / right / left with Kutools for Excel
If you want to fill the blank cells with value above or below, the Kutools for Excel’s Fill Blank Cells also can do you a favor. Please do as follows:
1. Select the data range that you want to fill the blanks with value above, and enable the Fill Blank Cells feature.
2. In the Fill Blank Cells dialog box, select Based on values option under the Fill with section, and then choose the options that you want to fill the blank cells, you can fill them down, up, right and left as you need, see screenshot:
3. And then click Ok or Apply button, and the blank cells have been filled with the data above, see screenshots:
![]() |
![]() |
![]() |
Click to Download and free trial Kutools for Excel Now!
With this Fill Blank Cells utility, you can also fill blank cells with linear values, click here to know more.
Fill blank cells with value above / linear values / specific value
Related articles:
Fill blank cells with linear values
Fill blank cells with value above
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
