Table of Contents
Replacing #N/A values in Google Sheets is a simple process that can be done by using the built-in “IFERROR” function. This function allows users to specify a value or action to be taken in case of an error, such as the #N/A value. By using the “IFERROR” function, users can replace the #N/A values with a desired alternative, such as a blank cell or a custom message. This ensures that the data in the spreadsheet remains accurate and presentable, without the disruption caused by the #N/A values. Additionally, users can also use other functions such as “ISNA” and “VLOOKUP” to further customize the replacement of #N/A values according to their specific needs.
Replace #N/A Values in Google Sheets
You can use the following basic syntax to replace #N/A values in Google Sheets 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:
Example: Replace #N/A Values in Google Sheets
Suppose we have the following dataset in Google Sheets that shows the team name and points scored for various basketball teams:

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:
=IFERROR(VLOOKUP(A2, $A$2:$B$11, 2, FALSE), "0")
The following screenshot shows how to use this function in practice:

Notice that the VLOOKUP() function now returns 0 instead of #N/A values.
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$2:$B$11, 2, FALSE), "")

Notice that each value that was previously #N/A is now blank.
It’s worth noting that we can use the IFERROR() function to replace #N/A values with any value that we’d like.
In the previous examples we simply replaced #N/A values with zeros or blanks because these are the most common replacement values used in practice.
Additional Resources
The following tutorials explain how to perform other common tasks in Google Sheets:
Cite this article
stats writer (2024). How can I replace #N/A values in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-google-sheets/
stats writer. "How can I replace #N/A values in Google Sheets?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-google-sheets/.
stats writer. "How can I replace #N/A values in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-google-sheets/.
stats writer (2024) 'How can I replace #N/A values in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-replace-n-a-values-in-google-sheets/.
[1] stats writer, "How can I replace #N/A values in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I replace #N/A values in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
