Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=AVERAGE(B2:B4)Computed by a real spreadsheet engine on the sample data below.
| Day | Value |
| 1 | 10 |
| 2 | 14 |
| 3 | 12 |
| 4 | 18 |
| 5 | 16 |
=AVERAGE(B2:B4)→12
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.
Plain AVERAGE with a relative range is the right tool. AVERAGEIF adds conditions, which are not needed for a simple rolling window.
Either leave them blank, use =IF(ROW()-ROW($B$2)+1>=N, AVERAGE(OFFSET(...)), "") to suppress early values, or accept a partial window average for early rows.
Use the AVERAGE function to calculate the arithmetic mean of a range of numbers in Excel or Google Sheets.
How-toUse AVERAGEIF with a "<>0" criterion to calculate an average that excludes zero values from the calculation.
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-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: