How can I replace #N/A values in Excel? 2

How can I replace #N/A values in Excel?

Replacing #N/A values in Excel can be done by using the IFERROR function. This function allows you to replace any error values, including #N/A, with a desired value. Simply enter the IFERROR formula in the cell where the #N/A appears, specify the value you want to use as a replacement, and press enter. This will replace all #N/A values in the selected cell with the specified value. This method is useful for cleaning up data and ensuring accurate calculations in your Excel sheets.

Replace #N/A Values in Excel (With Examples)


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.

Example: Replace #N/A Values in Excel

Suppose we have the following dataset in Excel:

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

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:

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:

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.

Cite this article

stats writer (2024). How can I replace #N/A values in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-excel/

stats writer. "How can I replace #N/A values in Excel?." PSYCHOLOGICAL SCALES, 6 May. 2024, https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-excel/.

stats writer. "How can I replace #N/A values in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-excel/.

stats writer (2024) 'How can I replace #N/A values in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-excel/.

[1] stats writer, "How can I replace #N/A values in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, May, 2024.

stats writer. How can I replace #N/A values in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top