How to Fill Blank Cells with N/A in Excel – 3 Easy Methods

Method 1 – Using the Go To Special Command to Fill Blank Cells with N/A

The following dataset showcases blank cells in the Sales column.

Using Go To Special Command to Fill Blank Cells with “N/A”

Steps:

  • Select C5:C14.
  • Go to the Home tab.
  • Select Find & Select in Editing.
  • Click Go To Special.

Using Go To Special Command to Fill Blank Cells with “N/A”

  • In the Go To Special dialog box, click Blanks.
  • Click OK.

Blank cells are selected.

  • Enter N/A in a blank cell.
  • Press ‘Ctrl+Enter’ to apply the changes to the other blank cells.

Using Go To Special Command to Fill Blank Cells with “N/A”

This is the output.

Using Go To Special Command to Fill Blank Cells with “N/A”


Method 2 – Filling Blank Cells with N/A by Applying the Replace Command

Steps:

  • Select C5:C14.
  • Go to the Home tab.
  • Choose Find & Select in Editing.
  • Click Replace.

Applying Replace Command to Fill Blank Cells with “N/A”

  • In the Find and Replace dialog box, keep Find what empty.
  • Click Replace.
  • Enter N/A in Replace with.
  • Click Replace All.

  • Click OK.

Applying Replace Command to Fill Blank Cells with “N/A”

This is the output.

Applying Replace Command to Fill Blank Cells with “N/A”

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


Method 3 – Embedding a VBA Code to Fill Blank Cells

Steps:

  • Press Alt+F11 to open the VBA editor.
  • Select Insert > Module.

Embedding VBA Code to Fill Blank Cells

  • Enter the following code
Sub FillBlank_Cells_with__NA_in_Excel()
Dim Selected_area1 As Range
Dim Enter_NA As String
On Error Resume Next
Enter_NA = InputBox("Type a value that will fill blank cells", _
"Fill Blank Cells")
For Each Selected_area1 In Selection
If IsEmpty(Selected_area1) Then
Selected_area1.Value = Enter_NA
End If
Next
End Sub
  • Close the Visual Basic window, and select C5:C14.

  • Press ALT+F8.
  • In the Macro dialog box, select FillBlank_Cells_with_NA_in_Excel in Macro name.
  • Click Run.

  • In the Fill Blank Cells dialog box, enter N/A.

This is the output.

Embedding VBA Code to Fill Blank Cells


How to Quickly Fill Blank Cells with a Zero or Other Specific Values

 

How to Quickly Fill Blank Cells with Zero or Other Specific Values

Steps:

  • Select C5:C14 and press ‘Ctrl+F’.
  • In the Find and Replace dialog box, keep Find what empty.
  • Click Replace.
  • Enter 0 (zero) in Replace with.
  • Click Replace All.

  • Click OK.

How to Quickly Fill Blank Cells with Zero or Other Specific Values

This is the output.

How to Quickly Fill Blank Cells with Zero or Other Specific Values


Download Practice Workbook

Download this practice workbook to exercise.


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Saquib Ahmad Shuvo
Saquib Ahmad Shuvo

Saquib Ahmad Bhuiyan, holding a BSc degree in Naval Architecture & Marine Engineering from Bangladesh University of Engineering and Technology, skillfully integrates engineering expertise with a passion for Excel. He provides solutions to complex issues as an Excel & VBA Content Developer for ExcelDemy Forum. He demonstrates an enthusiastic mindset and adeptness in managing critical situations with finesse, showcasing his commitment to excellence. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, Rhinoceros,... Read Full Bio

1 Comment
  1. Hi
    Thanks a lot it was really useful.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo