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
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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “add a average line in excel graph” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected chart shows up while it is still harmless. 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 turns a visual that makes the number obvious at a glance into a method you can reuse, explain, and defend when the workbook leaves your screen.
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
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “add a average line in excel graph”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
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 “excel graph average line”, “how to add an average line in excel graph” and “how to add average line in excel graph” — 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. “excel graph average line”, “how to add an average line in excel graph”, “how to add average line in excel graph” all point at the one operation explained on this page, which is why they all lead here.