To calculate the mean from a data table, multiply each value by its frequency, add those products, and divide by the total count — that's the frequency-weighted formula. It gives the same answer as adding every raw value and dividing by how many there are. Use it whenever a table collapses repeated values into a count column. The boundary matters: this gives an exact mean only when the table has no grouped ranges, and only an estimate when it does. Everything below works through both cases with small tables you can check by hand.
Sort the Table Before You Touch a Calculator
Check what each row represents first, because a table can hold two very different things inside the same grid. In a frequency table, every row is one distinct value plus how many times it occurred. In a grouped table, every row is a range plus how many values fall inside that range. The arithmetic differs, and mixing the two is the most common error in homework and in office spreadsheets alike.
Count the total observations before computing anything. For a frequency table, sum the frequency column; that sum is your denominator. Take the small table below: scores of 2, 3, 4, and 5, occurring 1, 4, 2, and 3 times. The frequencies add to 10, so the mean must divide by 10, never by 4.
| Score (x) | Frequency (f) | f × x |
|---|---|---|
| 2 | 1 | 2 |
| 3 | 4 | 12 |
| 4 | 2 | 8 |
| 5 | 3 | 15 |
| Total | 10 | 37 |
Sanity-check the result against the table itself. The weighted mean is 37 ÷ 10 = 3.7, which sits between the smallest value (2) and the largest (5). If your answer lands outside the observed range, you divided by row count or misplaced a decimal. That single check catches most errors before they spread into a report.
Write the mean to one more decimal place than the raw data carries, or match whatever precision your course or employer specifies. The values above are whole numbers, so 3.7 is appropriate; if the raw scores had been recorded to two decimals, report the mean to three. State the unit too — points, kilograms, seconds — because a bare number invites misinterpretation when the table is shared.
Multiply Each Value by Its Frequency, Then Divide
This is the weighted-mean calculation that handles the table directly, and it's the one to use by default. The procedure takes four steps and no shortcuts.
1: Create a new column: value × frequency for every row. 2: Add that column to get the total of all products. 3: Add the frequency column to get the total count. 4: Divide the product total by the count total.
On the table above, the products are 2, 12, 8, and 15, summing to 37. The frequencies sum to 10. The mean is 3.7.
Compare that to the raw-data route. If the ten scores were listed individually — 2, 3, 3, 3, 3, 4, 4, 5, 5, 5 — the sum is still 37 and the count still 10. The frequency table just compressed four arithmetic steps into one multiplication per row. That compression is the entire point of the method.
When the frequency column is all ones, the formula collapses into the plain average. That's worth recognizing, because some tables include a count column where every entry is 1, and readers waste time wondering whether the calculation changes. It doesn't.
Errors cluster in two places: multiplying the wrong pair of columns, or dividing by the number of rows instead of the frequency total. In the example above, dividing 37 by 4 rows gives 9.25 — wildly outside the data range and an instant red flag. Keep the frequency total visible in its own cell so it can't be confused with row count.
Estimate Grouped Ranges Using Midpoints, and Say So
When rows hold ranges like 10–19 or 60–69, the exact values are gone, so the mean can only be estimated. Use the midpoint of each range as the representative value, weight it by frequency, and divide by the total count. State clearly that the result is an estimate.
A grouped table of waiting times illustrates the mechanics. Ranges of 0–9, 10–19, 20–29, and 30–39 minutes have midpoints of 4.5, 14.5, 24.5, and 34.5. With frequencies of 5, 12, 8, and 5, the products are 22.5, 174, 196, and 172.5, totaling 565 across 30 observations — an estimated mean of 18.83 minutes.
| Range (minutes) | Midpoint (x) | Frequency (f) | f × x |
|---|---|---|---|
| 0–9 | 4.5 | 5 | 22.5 |
| 10–19 | 14.5 | 12 | 174 |
| 20–29 | 24.5 | 8 | 196 |
| 30–39 | 34.5 | 5 | 172.5 |
| Total | 30 | 565 |
The midpoint assumes values spread evenly within each range. Real data rarely does that. Waiting times, incomes, and response times all skew toward one end of their buckets, so the estimate can be off by a meaningful margin. The actual mean could sit several minutes either side of 18.83 depending on where values cluster.
Never present a grouped estimate with the same confidence as an exact calculation. Label it "estimated mean" in any report, and if precision matters, ask for the raw data behind the buckets. Spreadsheets make this blur invisible: the number looks identical whether it came from exact values or midpoints.
Two traps await. Ranges with unequal widths need the same midpoint treatment, not a shortcut based on range size. And open-ended buckets — "50 or more" — have no calculable midpoint, so the estimate becomes a guess unless you assume a boundary and say what you assumed.
Use AVERAGE When Every Row Is One Observation
Spreadsheet users often ask which function applies, and the answer depends on structure. If each row is a single observation in its own cell, =AVERAGE(range) does the job and matches the arithmetic mean exactly. Google Sheets and Excel both use this function name, and both accept a range like =AVERAGE(B2:B11) to average ten values in column B.
If the table is a frequency table, AVERAGE gives the wrong answer. Averaging a column of distinct values ignores the counts entirely. Running =AVERAGE on the value column of the scores table returns 3.5 — the average of 2, 3, 4, and 5 — not the true 3.7. The counts must enter the formula.
The fix is =SUMPRODUCT(values, frequencies) / SUM(frequencies). In Excel and Google Sheets alike, =SUMPRODUCT(A2:A5, B2:B5) / SUM(B2:B5) returns 37 ÷ 10 = 3.7 on the sample table. SUMPRODUCT multiplies matching entries and adds the results in one call, which is the spreadsheet equivalent of the products column.
One platform difference catches people out: pivoted data. When a PivotTable or pivot summary displays a mean of averages, it pools each row's mean rather than weighting by count. On tables with wildly different row sizes, the pivot's grand total can diverge from the true mean. Recompute from the underlying data with SUMPRODUCT before quoting any pooled figure.
Three Checks That Catch a Wrong Mean
Verify every result against three independent tests, because each ones fails to catch errors the others miss.
Range check. The mean must fall between the minimum and maximum values. If it doesn't, you divided by the wrong denominator. Order-of-magnitude check. Estimate the answer mentally before computing. On the scores table, most values are 3s, so the mean should land near 3 — which 3.7 does, barely. A result of 37 means a moved decimal. Raw-sum check. Compare the products total against the sum of all values counted out one by one.
The third check is the most reliable and the most skipped. On the ten-score example, listing every value gives 2 + 3 + 3 + 3 + 3 + 4 + 4 + 5 + 5 + 5 = 37, matching the product column exactly. If the two disagree, either a frequency was miscounted or a product was miscalculated.
Three independent checks that each pass on their own are still not proof, but together they catch nearly every common slip. Build them into your routine and you'll ship the mean with confidence.
Worked Example: Reconstructing Ten Scores From a Summary Table
Real tables arrive as summaries, not neat lists, and reconstructing the raw data forces you to confront where errors hide. Take a customer-satisfaction table with ratings 1 through 5 and counts of 3, 8, 15, 12, and 2. The frequencies total 40, and the products are 3, 16, 45, 48, and 10.
Write out the implied raw data mentally: three 1s, eight 2s, fifteen 3s, twelve 4s, and two 5s. Any mean of 40 values should fall close to the center of the range, around 3. Here the product total is 122, giving a mean of exactly 3.05.
| Rating (x) | Count (f) | f × x |
|---|---|---|
| 1 | 3 | 3 |
| 2 | 8 | 16 |
| 3 | 15 | 45 |
| 4 | 12 | 48 |
| 5 | 2 | 10 |
| Total | 40 | 122 |
Check the reconstruction against the range test. A mean of 3.05 on a 1–5 scale sits just above the middle, consistent with the heavy cluster at ratings 3 and 4. That pattern is what a satisfaction survey usually produces.
Now compute what a colleague might mistakenly report. Averaging the rating column alone gives 3.0; averaging the count column gives 8. Neither is the satisfaction mean, and both would mislead. The weighted figure of 3.05 is the only defensible number.
The reconstructed list also lets you check the total against the original table's header. If that table says "40 responses," the frequency sum must match. A mismatch of even one response shifts the mean slightly and signals a transcription error somewhere upstream — the kind of thing that stays invisible when you trust a single cell.
Weighted Means When Rows Carry Different Sample Sizes
Some tables have a mean already calculated per row, with a sample size beside it. Combining rows into one overall mean requires weighting each row's mean by its sample size — the same multiplication-and-division logic, applied one level up.
A two-store comparison shows the mechanics. Store A served 120 customers with a mean spend of $42; Store B served 80 with a mean of $35. Weighting each mean by its customer count gives products of $5,040 and $2,800, totaling $7,840 across 200 customers — a combined mean of $39.20.
Averaging the two row means without weights gives $38.50. The two answers differ by $0.70 per customer, which compounds across a year of transactions. The weighted figure is correct whenever row sizes differ, which is almost always.
The boundary belongs here as well. This method assumes each row's mean was computed from its own raw data with no further grouping. If a row's mean is itself a grouped estimate, the combined figure inherits that imprecision and should be labeled as estimated.
Apply the same weighting to any table with per-row averages and counts: monthly sales averages per region, mean test scores per class, mean delivery times per depot. The formula is identical every time.
FAQ
What's the fastest way to compute a mean from a frequency table?
Use =SUMPRODUCT(values, frequencies) / SUM(frequencies) — one cell returns the weighted mean on any frequency table. For the sample scores of 2, 3, 4, 5 with counts 1, 4, 2, 3, it returns 3.7, not the 3.5 you get from averaging only the value column.
Why is my mean outside the smallest and largest values in my table?
That almost always means you divided by the row count instead of the frequency total. On a table of 10 observations spread across 4 rows, dividing by 4 inflates the result by a factor of 2.5. Sum the entire frequency column and use that as the denominator.
Can the mean be a number that isn't in the table at all?
Yes, and it usually is. The mean of 2, 3, 3, 3, 3, 4, 4, 5, 5, 5 is 3.7 — a value that never appears as an observation. That's normal. The mean describes the balance point of the data, not a member of it. One exception is a distribution where every value is identical, such as three readings of 12, whose mean is exactly 12.
Should I report a grouped mean as if it were exact?
No. A grouped mean is an estimate built on midpoints, and the true value can differ by several units depending on how values skew inside each bucket. Label it "estimated mean" and state the bucket boundaries used. Request raw data when precision matters.
How does a weighted mean differ from a plain average?
A weighted mean multiplies each row's mean by its sample size before dividing. Two stores with means of $42 and $35 look like they average $38.50, but weighting by 120 and 80 customers gives $39.20. The gap exists whenever group sizes differ, which is most real tables.
What happens if my frequency table has a blank count cell?
SUM and SUMPRODUCT both treat blanks as zero, so the calculation runs — but a missing count silently understates the total. A blank frequency can mean the value never occurred or that data wasn't recorded; those are different facts. Audit blank cells before computing and decide which interpretation applies.
Do Excel and Google Sheets calculate frequency-table means identically?
Both compute SUMPRODUCT the same way, but their pivot-table grand totals can differ from the true weighted mean when rows hold their own averages. Recompute the pooled figure from the raw rows with SUMPRODUCT rather than trusting a pivot's default total.