How to Fill Blank Cells with Text in Excel (3 Methods)

Let’s start with our sample dataset, which contains several blank cells. Our objective is to fill these blank cells with text.

4 Effective Ways to Fill Blank Cells with Text in Excel.


Method 1 – Using Go To Special Tool:

The first easiest way to fill blank cells is to use Go To Special tool.

Steps:

  • Select the entire dataset (B5:F12) where you need to fill blank cells.
  • Go to the Home tab, and from the Editing group, click on the Find & Select drop-down menu.
  • Choose Go To Special option. A dialog box will appear.

Fill Blank Cells With Text in Excel Using Go To Special Function

  • Select the Blanks option under the Select section and press OK. This will select all of the blank cells.

Fill Blank Cells With Text in Excel Using Go To Special Function

  • In the first blank cell, type the text you want to fill the blank cells with (for example, Void). Press CTRL+ENTER.

Fill Blank Cells With Text in Excel Using Go To Special Function

All the blank cells will now be filled with the same word Void.


Method 2 – Using the Find and Replace Tool:

Steps:

  • Select the entire dataset (B5:F12) where you need to fill blank cells.
  • Press CTRL+H to open the Find and Replace dialog box.

Fill Blank Cells With Text in Excel Using Find and Replace Tool

  • Leave the Find what box blank and type Void in the Replace with box.
  • Click Replace All to fill in the blank cells with Void.

Fill Blank Cells With Text in Excel Using Find and Replace Tool

  • Press OK and close the pop-up.

Read More: How to Find and Replace Blank Cells in Excel


Method 3 – Using a Simple VBA Code:

Steps:

  • Go to the Developer tab and click the Visual Basic button.
  • In the window that pops up, click the Insert tab and select the Module option.

If you don’t have this tab, enable it, or press Alt+F11 to open a new module.

Using VBA Codes

  • Copy the following code and paste it into the module window.
Sub FillBlankCells()
Range("B5:F12").SpecialCells(xlCellTypeBlanks) = "Void"
End Sub
  • Click the Run Button (or press F5) to execute the VBA code.

Using VBA Codes

  • The void cells will be successfully filled with the word specified in the code.


Quick Notes

Save your Excel file in .xlsm format to retain the macro and run the VBA code effectively.


Download Practice Workbook

You can download the practice workbook from here:


Related Articles


<< Go Back to Fill Blank Cells | Blank Cells in Excel | Excel Cells | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Hafizul Islam
Hafizul Islam

Hafizul Islam is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a superhero tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including Rhino3D, Maxsurf C++, AutoCAD, Deep Neural Networks, and Machine Learning. He got his B.Sc in Naval Architecture & Marine Engineering from BUET, and now he's switched gears, working as a content developer. In this role,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo