In Excel: use =AVERAGE(range), for example =AVERAGE(A1:A10), or =AVERAGEIF(range, criteria) to average only matching rows.
On this page7
n = 7 · Sum = 103.00 · Min = 9.00 · Max = 21.00
7 values
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
AVERAGE adds the numbers in a range and divides by how many there are, ignoring blank and text cells (unlike a manual SUM/COUNT, which you would have to guard yourself). It is the arithmetic mean — the single value that best represents the centre of a tidy data set, though a few extreme values can drag it, which is when MEDIAN is the better choice. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “calculate a rolling average in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
For the scores 12, 15, 9, 21, 17, 14 in A1:A6, =AVERAGE(A1:A6) returns 14.67. To average only passing scores, =AVERAGEIF(A1:A6,">=10") ignores the 9 and returns 15.8. If one score were a typo of 210, the average would leap to 47 — a reminder to check for outliers. The average is the first summary anyone asks for — typical sales, mean score, average response time. Knowing when it lies (skewed data, hidden blanks) is what separates a quick number from a trustworthy one. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. If you take one thing from this page on “calculate a rolling average in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
Common mistakes
- Including blank cells you meant to count as zero —
AVERAGEignores blanks, changing the divisor. - Letting a single outlier skew the mean; check with
MEDIANwhen data is lopsided. - Averaging an already-averaged column (an average of averages) instead of the raw values.
- Counting text cells as zeros —
AVERAGEskips them, which may not be what you intend.
Frequently asked questions
Average vs median?
The average (mean) uses every value and is pulled by extremes; the median is the middle value and resists outliers. Use median for skewed data like incomes or house prices.
Does AVERAGE count blank cells?
No. Blanks are ignored, so they do not lower the result. If a blank should count as zero, replace it with 0 first.
How do I average with a condition?
AVERAGEIF takes one condition; AVERAGEIFS takes several across different columns.