How to Replace #N/A Values in Excel (With Examples) - Statology (2024)

You can use the following basic syntax to replace #N/A values in Excel with either zeros or blanks:

#replace #N/A with zero=IFERROR(FORMULA, "0")#replace #N/A with blank=IFERROR(FORMULA, "") 

The following example shows how to use this syntax in practice to replace #N/A values from a VLOOKUP with zero or blanks.

Related: How to Replace Blank Cells with Zero in Excel

Example: Replace #N/A Values in Excel

Suppose we have the following dataset in Excel:

How to Replace #N/A Values in Excel (With Examples) - Statology (1)

And suppose we use the VLOOKUP() function to look up points based on team name:

How to Replace #N/A Values in Excel (With Examples) - Statology (2)

Notice that some of the values returned in the VLOOKUP() are #N/A values.

We can turn these values into zeros by using the IFERROR() function as follows:

#replace #N/A with zero=IFERROR(VLOOKUP(A2, $A$1:$B$11, 2, FALSE), "0")

The following screenshot shows how to use this function in practice:

How to Replace #N/A Values in Excel (With Examples) - Statology (3)

Alternatively, we can turn the #N/A values into blanks using the IFERROR() function as follows:

#replace #N/A with blank=IFERROR(VLOOKUP(A2, $A$1:$B$11, 2, FALSE), "")

The following screenshot shows how to use this function in practice:

How to Replace #N/A Values in Excel (With Examples) - Statology (4)

Notice that each value that was previously #N/A is now blank.

Using the IFERROR() function, we can replace #N/A values with any value that we’d like.

In the previous examples, we simply chose to replace #N/A values with zeros or blanks because these are the most common replacement values used in practice.

Additional Resources

How to Perform a Percentile IF Function in Excel
How to Perform a Median IF Function in Excel

How to Replace #N/A Values in Excel (With Examples) - Statology (2024)
Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 6279

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.