In Excel: use =AVERAGE(range), for example =AVERAGE(A1:A10), or =AVERAGEIF(range, criteria) to average only matching rows.
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. For “calculate moving average in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. 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. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.
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. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
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 moving 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.
Other ways people ask this
On the way here you may have searched this as “how to calculate moving average in excel” and “how to calculate the moving average in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to calculate moving average in excel”, “how to calculate the moving average in excel” all point at the one operation explained on this page, which is why they all lead here.