Before you read the answers
- Work out revenue for the first four orders, the value times weight column.
- Divide total revenue by total units to get the weighted average price.
- Compare it with the plain average and say why they differ.
All examples use original synthetic data. Source row numbers and column letters are shown so you can reproduce the formulas.
The product column of a weighted average
Revenue for each order is units times unit price. That is the value times weight column of a weighted average price. Work it out for the first four orders.
USD per unit and USD revenue. One fictional order per row, November 2026.
| Row | A · Order ID | B · Region | C · Channel | D · Units | E · Unit price (USD) | F · Revenue: your formula |
|---|---|---|---|---|---|---|
| 8 | RS-101 | East | Direct | 18 | 42 | Blank task cell |
| 9 | RS-102 | West | Partner | 12 | 55 | Blank task cell |
| 10 | RS-103 | North | Direct | 25 | 32 | Blank task cell |
| 11 | RS-104 | East | Partner | 16 | 48 | Blank task cell |
| 12 | RS-105 | South | Direct | 30 | 29 | Blank task cell |
| 13 | RS-106 | West | Direct | 14 | 55 | Blank task cell |
| 14 | RS-107 | North | Partner | 20 | 35 | Blank task cell |
| 15 | RS-108 | East | Direct | 22 | 42 | Blank task cell |
| 16 | RS-109 | South | Partner | 15 | 31 | Blank task cell |
| 17 | RS-110 | West | Partner | 10 | 58 | Blank task cell |
| 18 | RS-111 | North | Direct | 28 | 32 | Blank task cell |
| 19 | RS-112 | South | Direct | 24 | 29 | Blank task cell |
Worked solution and complete results
RS-101 revenue · F8
=D8*E8Result: 756
RS-102 revenue · F9
=D9*E9Result: 660
RS-103 revenue · F10
=D10*E10Result: 800
RS-104 revenue · F11
=D11*E11Result: 768
A mistake to catch
Averaging the unit price column directly, which gives every order the same say regardless of how many units it sold.
Correction. Total the product column and the units column, then divide one by the other, and check the answer sits between the lowest and highest price.
Read the result
Across all 12 orders, total revenue of 8,885 divided by 234 units gives a weighted average price of about 37.97. The plain average of the 12 unit prices is about 40.67. The weighted figure is lower because the cheaper rows, priced at 29 to 32, sold more units.
When does a plain average give the wrong answer?
Before you write anything, ask one question: does every row stand for the same amount of the thing you are averaging? If rows carry different hours, units, credits or spend, a plain AVERAGE gives a small row the same say as a large one. That is fine when the rows really are equal units, and misleading when they are not.
The classic failure is the average of averages. You average group results that were built from different group sizes, and the answer drifts toward whichever groups are small, because each group counts once no matter how much data sits behind it. If you have ever averaged a set of monthly rates and felt the figure did not match the spend, this is usually why.
Do not over-apply the technique. If you are averaging quoted prices for the same quantity, or scores where every entry is one attempt, a plain average is correct and weighting it would be wrong. Say the question out loud in words: average price per unit bought is weighted, average of the monthly prices I was quoted is not. The average lesson covers the plain case, and the weighted average lesson picks up where it stops.
- Write the question in one sentence, naming what each row represents.
- Check whether every row represents the same quantity of that thing.
- If the rows differ in size, hours, units or spend, plan for a weighted average.
- If they are genuinely equal units, stop and use a plain average.
What counts as a weight in a weighted average?
A weight is how much of the total each row represents: hours worked, units bought, credits attached to a module, spend on a line. It is not a score, a rank or an opinion about importance unless you have deliberately decided it is, and that decision should be written down next to the column.
Weights can be counts or percentages, but every weight in one column must be on the same basis. Mixing point weights and percentage weights in a single column is the most common silent error, because the formula still returns a number and nothing flags it. Check the column total: a set of percentages and a set of unit counts look very different once added up, and the share lesson helps you tell which one you are looking at.
A zero weight legitimately removes a row from the result, which is useful when a line was cancelled. A blank weight does not do the same job, because a blank is treated as zero and hides the fact that a figure is missing. Use COUNTBLANK on the weight column before you trust the result, so a missing figure shows up as a count rather than as a quietly wrong answer. When you find one, decide whether that row should be excluded or its weight estimated from a comparable row, and record which choice you made next to the column.
Negative weights have no meaning in this calculation and will drag the result outside the range of your values. If you see a negative in the weight column, find out why before you build anything.
Work one out by hand before you touch the formula
Set up three columns: value, weight, and value multiplied by weight. Put a total under the last two. That layout is the whole calculation in plain sight, and it is what you will check the formula against later.
Do it on paper or in a scratch area for a handful of rows. The hand answer is the specification the formula has to match, and it is the only independent check you will have. Total the weight column, total the product column, then divide one by the other. Note whether the weight total looks like a whole number of units or a set of percentages, because that tells you which kind of weight you are working with.
In the sample table above, the 12 orders have total revenue of 8,885 and total units of 234. =SUMPRODUCT(D8:D19,E8:E19)/SUM(D8:D19) returns 37.97, the weighted average price. =AVERAGE(E8:E19) returns 40.67, the plain average of the unit prices.
Write the hand answer down before building the formula, so a wrong formula cannot talk you into a wrong answer. Then sanity check it: the result must sit between the smallest and largest value in the value column. If it does not, the arithmetic or the weights are wrong, and the MIN and MAX lesson gives you the two bounds to compare against.
If you prefer to see the mechanics first, the SUM lesson covers totalling a column and the SUMPRODUCT lesson shows the multiplication step before you combine them.
- Lay out value, weight and value times weight, one row per record.
- Total the weight column and the product column separately.
- Divide the product total by the weight total and write the answer down.
- Check the answer falls between the smallest and largest value.
The SUMPRODUCT form, and why it beats a long formula
The shape is SUMPRODUCT over the value range and the weight range, divided by SUM of the weight range. The first part multiplies each value by its own weight and adds the products; the second part adds the weights. Dividing one by the other is the weighted average.
This replaces a helper column of products and a long chain of additions, and it needs no special key combination to enter. The two ranges must be the same size and shape. When they are not, you get an error rather than a wrong number, which is the good outcome: a loud failure is easier to fix than a quiet one.
Only drop the division when the weight total is exactly one, and keep it otherwise. Leaving it in is the safer habit because the formula then survives a row being added or removed. Lock the ranges with absolute references before filling the formula down. A range that slides by one row is the fault that produces a plausible but wrong figure, and the references lesson and the mixed references lesson both cover the locking patterns.
- Write SUMPRODUCT with the value range first and the weight range second.
- Divide by SUM of the same weight range.
- Confirm both ranges have the same number of rows.
- Lock both ranges with absolute references before copying the formula.
Weighted average with percentages
Percentage weights that total a whole and percentage weights that do not both work, provided you divide by the weight total. That division is what makes the formula survive a weight column that sums to less than a whole because a row is missing, and it is why you do not need to force the weights to add up before you start.
Watch the difference between a percentage stored as a number and a percentage typed as text with a percent sign. A text percentage may not count as a number, so a row can drop out of the result or cause an error, depending on how the formula is written. The VALUE lesson shows how to convert, and the ISNUMBER lesson lets you count how many cells in the column are genuinely numeric before you build the formula.
The result of a weighted average of percentages is itself a percentage and should be formatted as one. The opposite mistake is formatting a plain number as a percentage, which multiplies what the reader thinks they are seeing. Check the underlying value in the formula bar rather than trusting the cell display.
The double counting mistake is applying a percentage to a value that has already had that percentage applied. If your weights came from a column that was itself derived from the values, you are weighting twice. Read the weight column back to the reader as a check: if the weights do not total a whole, either a row is missing or one weight is wrong.
Weighted average with criteria
SUMIFS and COUNTIFS cannot do this on their own, because they add up one column rather than multiplying two columns together first. The documented behavior of those functions is on Microsoft's SUMIFS page, which is worth reading once so you know what they will and will not do.
The pattern that works is SUMPRODUCT with each condition in its own set of parentheses, the conditions multiplied together, and the whole thing multiplied by the value and weight ranges. Every criteria range must be the same size as the value and weight ranges. When one is not, you get an error, and it is usually the criteria range that is the odd one out.
When the sheet has to be audited by somebody else, a helper column with an IF that returns zero for excluded rows is often the clearer choice, because each row shows its own decision. The IF lesson covers the pattern. Test the criteria version against the unfiltered version on a subset you can verify by eye, so you know the conditions are doing what you intended rather than just returning something.
- Build the unfiltered weighted average first and note the answer.
- Add one condition in its own parentheses and compare with a hand total for that subset.
- Add the second condition only after the first matches.
- Check every criteria range has the same row count as the value and weight ranges.
Check the result three ways
Check one is the hand calculation from earlier, matched to the formula output. If they disagree, trust the hand answer and go looking for which range the formula is pointing at. Check two is a second, independent formula: a helper column of products totalled and divided by the totalled weights, built differently on purpose so a shared mistake is unlikely.
Check three is the boundary set: the answer lies between the smallest and largest value, the weight total matches what you expected, and no weight cell is blank or stored as text. The blank and text checks are covered in the weight section above, and IFERROR is worth adding only after you know which error you expect, never as a way to hide one.
The final test is reading the formula back in words to someone else. A weighted average you cannot explain is one you cannot defend when a colleague asks about it. If the checks disagree, the hand calculation wins, and the next step is to find the offset range rather than to adjust the answer.
A total row left inside the weight range is the most common fault: the grand total gets counted as an extra row and pulls the answer toward itself. Ranges of different lengths fail loudly, but a range that is the right length and offset by one row fails silently, which is why you check the first and last row of each range by eye. When the ranges are passed as separate arguments, SUMPRODUCT treats numbers imported as text as zero, so those rows vanish from the calculation without an error; the clean imported data guide covers the conversion steps.
Practice it on fresh data
Drill the skill by rebuilding the same formula on different data with different weight columns, so the pattern is learned rather than one answer memorized. A sensible order is plain average first, then weighted average with point weights, then percentage weights, then criteria, checking against a hand calculation each time.
Excel Practice is one option. It runs in the browser, so Excel does not need to be installed. The downloadable workbooks include source data, blank task cells and answer keys, and the guided projects combine several functions on one sheet.
If you prefer to work offline, the downloadable workbooks include source data, blank task cells and answer keys, and the guided projects combine several functions on one sheet. A completion record exists for signed-in, server-graded course completion; it is a Kinori Labs course-completion record, not an accredited qualification and not a Microsoft certification.
Practice the skills in order
- AVERAGE Averages help you compare an individual order with the wider pattern.Preview this task
- Weighted average An ordinary average of prices gives a tiny order as much influence as a large one. Weight each price by its quantity.Preview this task
- SUMPRODUCT An order total is a sum of each quantity times its own price. SUMPRODUCT does those matched products without a helper column.Preview this task
This guide does not cover moving averages, survey weights or pivot table calculated fields beyond recognizing when one is not a weighted average.
Practice weighted averagesContinue in a downloadable workbook
Regional sales practice
Calculate row revenue and compare regional and channel totals from pivot-ready order records.

USD per unit and USD revenue. One fictional order per row, November 2026.
Bank version 2026-11-02. Includes Instructions, Practice, AnswerKey; 16 live answer formulas. All source records are invented for education.
The download is an additional practice task. Its Instructions sheet identifies the source coordinates; this page’s illustrative example may use different records.
- Working answers use scalar Excel 2007+ functions. No macros, external links or dynamic-array dependency. Native Excel has not been launched for verification.
Further reading
- SUMIFS function Microsoft Support
- Overview of formulas in Excel Microsoft Support