FormulaCraft

How to average ignoring blank cells in Excel and Google Sheets

Topic:AVERAGE & central tendency
Excel & Google Sheets
=AVERAGE(B2:B6)

Verified example

Computed by a real spreadsheet engine on the sample data below.

MonthRevenue
Jan500
Feb
Mar700
Apr
May600

=AVERAGE(B2:B6)600

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Use =AVERAGE(B2:B6) — blank cells are automatically excluded, so no special handling is needed.
  2. 2If some blank-looking cells contain placeholder text (dashes, 'N/A', etc.), use =AVERAGEIF(B2:B6,"<>") to count only non-empty cells.
  3. 3For mixed ranges with zeros you want to keep, AVERAGE is sufficient — it includes zeros but not blanks.
  4. 4Press Enter to confirm the formula.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

AVERAGE is returning a higher count than expected — why?

Some visually blank cells may contain spaces or formulas returning empty strings, which AVERAGE skips. Cells with zero are included and lower the average. Audit with COUNTA.

How do I average only cells with actual numbers entered?

=AVERAGE(B2:B6) already does this. Only numeric cell values are included.

More on AVERAGE & central tendency

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: