6.2 C
London
Thursday, December 19, 2024
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: How to Ignore Blank Cells with Formulas

Google Sheets: How to Ignore Blank Cells with Formulas

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

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:

The sum of the points values for the teams that aren’t blank is 130.

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

The following tutorials explain how to perform other common operations in Google Sheets:

Google Sheets: How to Sum Cells If Not Blank
Google Sheets: How to Replace Blank Cells with Zero

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories