Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=AVERAGEIF(B2:B6,"<>0")Computed by a real spreadsheet engine on the sample data below.
| Month | Sales |
| Jan | 0 |
| Feb | 150 |
| Mar | 0 |
| Apr | 200 |
| May | 175 |
=AVERAGEIF(B2:B6,"<>0")→175
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
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.
AVERAGEIF already ignores blanks. Just use =AVERAGEIF(B2:B6,"<>0") and both zeros and blanks are excluded.
Yes. =AVERAGEIFS(B2:B6,B2:B6,"<>0",A2:A6,"North") averages non-zero values in the North region.
Use the AVERAGE function to calculate the arithmetic mean of a range of numbers in Excel or Google Sheets.
How-toAVERAGE naturally ignores blank cells; use AVERAGEIF with "<>" to also ignore text placeholders like dashes.
How-toUse AVERAGEIF to compute the mean of values in one column where a corresponding column meets a specified criterion.
How-toCompute a rolling average for each row using AVERAGE with a fixed-window OFFSET or INDEX formula anchored to each row.
How-toUse the MEDIAN function to find the middle value in a dataset — the value that half the data falls above and half below.
How-toUse MODE for numbers or COUNTIF-based logic for text to find the value that appears most frequently in a dataset.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: