Table of Contents
Google Sheets is a powerful tool for data analysis and manipulation, but it can be frustrating when encountering #N/A values in formulas. These values indicate that the formula is unable to calculate a result, which can disrupt the accuracy of your data analysis. To avoid this issue, there are several methods for ignoring #N/A values in Google Sheets formulas. One approach is to use the IFERROR function, which allows you to replace #N/A values with a custom message or blank cell. Another option is to use the IF and ISERROR functions together to create a logical statement that will only calculate the formula if there are no #N/A values present. By utilizing these techniques, you can ensure that your formulas in Google Sheets are more accurate and reliable.
Ignore #N/A Values with Formulas in Google Sheets
You can use the following basic syntax to calculate different metrics in Google Sheets while ignoring #N/A values:
=AVERAGE(IFNA(A2:A14, "")) =SUM(IFNA(A2:A14, "")) =IFNA(VLOOKUP(E2, A2:A14, 2, FALSE), "")
These formulas simply replace #N/A values with blanks and then calculates the metric you’re interested in.
The following examples show how to use this syntax in practice.
Example 1: Calculate Average & Ignore #N/A Values
The following screenshot shows how to calculate the average of a dataset that contains #N/A values:

The average value of the dataset (ignoring all #N/A values) is 9.7.
Example 2: Calculate Sum & Ignore #N/A Values
The following screenshot shows how to calculate the sum of a dataset that contains #N/A values:

The sum of the dataset (ignoring all #N/A values) is 97.
Example 3: Use VLOOKUP & Ignore #N/A Values
The following screenshot shows how to use the VLOOKUP function to return the value in the Points column that corresponds to the value in the Team column:

Notice that for any value in the Points column equal to #N/A, the VLOOKUP function simply returns a blank value instead of a #N/A value.
Additional Resources
Cite this article
stats writer (2024). How can I ignore #N/A values in Google Sheets formulas?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-ignore-n-a-values-in-google-sheets-formulas/
stats writer. "How can I ignore #N/A values in Google Sheets formulas?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-ignore-n-a-values-in-google-sheets-formulas/.
stats writer. "How can I ignore #N/A values in Google Sheets formulas?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-ignore-n-a-values-in-google-sheets-formulas/.
stats writer (2024) 'How can I ignore #N/A values in Google Sheets formulas?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-ignore-n-a-values-in-google-sheets-formulas/.
[1] stats writer, "How can I ignore #N/A values in Google Sheets formulas?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I ignore #N/A values in Google Sheets formulas?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
