Table of Contents
This article explains how to make Google Sheets ignore blank cells when using formulas. By using the IF and ISBLANK functions, users can create a formula that will ignore any blank cells within a range of data. This allows for more accurate calculations and prevents errors caused by blank cells. Additionally, the use of the IFERROR function can help to catch and handle any errors that may occur. By following these steps, users can effectively manage and manipulate data in Google Sheets without being affected by blank cells.
Google Sheets: Ignore Blank Cells with Formulas
You can use the following formulas in Google Sheets to ignore blank values when performing calculations:
Formula 1: Calculate Average & Ignore Blanks
=AVERAGEIF(A2:A13,"<>",B2:B13)This formula calculates the average value in the range B2:B13 only for the cells where A2:A13 is not blank.
Formula 2: Calculate Sum & Ignore Blanks
=SUMIF(A2:A13,"<>",B2:B13)This formula calculates the sum of values in the range B2:B13 only for the cells where A2:A13 is not blank.
The following examples show how to use these formulas in practice.
Example 1: Calculate Average & Ignore Blanks
The following screenshot shows how to calculate the average value in the Points column only for the cells where the value in the Team column is not blank:

The average points value for the teams that aren’t blank is 16.25.
We can verify this is correct by manually calculating the average points value for the non-blank teams:
Average Points for Non-Blank Teams: (14+19+15+5+12+14+32+19) / 8 = 16.25.
Example 2: Calculate Sum & Ignore Blanks
The following screenshot shows how to calculate the sum of values in the Points column only for the cells where the value in the Team column is not blank:

We can verify this is correct by manually calculating the sum of the points values for the non-blank teams:
Sum of Points for Non-Blank Teams: 14+19+15+5+12+14+32+19 = 130.
Additional Resources
Cite this article
stats writer (2024). How do I make Google Sheets ignore blank cells when using formulas?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-do-i-make-google-sheets-ignore-blank-cells-when-using-formulas/
stats writer. "How do I make Google Sheets ignore blank cells when using formulas?." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-do-i-make-google-sheets-ignore-blank-cells-when-using-formulas/.
stats writer. "How do I make Google Sheets ignore blank cells when using formulas?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-do-i-make-google-sheets-ignore-blank-cells-when-using-formulas/.
stats writer (2024) 'How do I make Google Sheets ignore blank cells when using formulas?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-do-i-make-google-sheets-ignore-blank-cells-when-using-formulas/.
[1] stats writer, "How do I make Google Sheets ignore blank cells when using formulas?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How do I make Google Sheets ignore blank cells when using formulas?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
