Calculate weighted averages correctly
Prompt that finds averages of averages and recalculates them with the right weights. Paste it into an AI tool of your choice, which then calculates the average correctly.
- Topic
- Spreadsheets & data
- Type
- Prompt
- Level
- Intermediate
- Time
- about 15 min
Results depend on the tool, the model and what you enter.
Result preview
Example: written by our editors, not real AI output.
| Branch | Avg price | Units | | A | €12.00 | 1,000 | | B | €20.00 | 10 | | C | €14.00 | 500 | Old (simple mean): €15.33 New (weighted by units): €12.71 Formula: =SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4) Biggest influence: branch A
Fill in
What you type stays in this browser window. We store and send nothing.
- average price
- conversion rate
- average rating
- handling time
- margin
- one row per group with an average
- raw data per transaction
- several monthly sheets
- export from a report
- numbers from a presentation
- monthly report
- pricing decision
- comparing teams
- target agreement
- checking someone else's analysis
Your prompt
You have edited the prompt. Changes in the fields above no longer overwrite it.
This is an instruction for an AI, not the result itself.
Where this prompt works
These AI tools are a good fit for this prompt:
How to use it
- Fill in the fields or tap a suggestion. Leave out names, addresses and other personal data.
- Copy the finished prompt into an AI tool of your choice.
- Paste the table with groups, values and, if available, volumes per group.
Why does this work?
The average of a shop with 10 sales and one with 1,000 is not a fair mean. Without weights, the small group gets as much say as the large one.
Tips
- State in the report how you weighted, so others can recalculate the result.