Weighted Average Excel Formula

acool

Board Regular
Joined
Feb 10, 2023
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently trying to create an excel formula that calculates the weighted average number of Months on Hand based on columns A, B & C. While I know that a sumproduct formula should be used in this instance, I am not sure of how this sumproduct should be used exactly. Any help would be greatly appreciated. Thank You!
1702581662896.png
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Here's the idea:

ABC
1TestWeightMark
2A1040%
3B1020%
4C4090%
5D4080%
6100
7
8Average58%
9Weighted average74%
Sheet1
Cell Formulas
RangeFormula
B6B6=SUM(B2:B5)
C8C8=AVERAGE(C2:C5)
C9C9=SUMPRODUCT(B2:B5,C2:C5)/B6

In this example, the scores are higher in the two tests that matter - C and D have the higher weightings. Hence the weighted average is higher than the simple average.

But if you set the weights identically, the weighed average will equal the simple average, 58%.

In your example, you could in theory weight either by total units, or by monthly sales:

ABCD
1TotalSalesMonths on hand
25,0007007.1
31,0007513.3
420210.0
530,000201,500.0
62,50010025.0
750,0002,50020.0
8
9Total weighted520.9
10Sales weighted26.1
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=A2/B2
C9C9=SUMPRODUCT($C2:$C7,A2:A7)/SUM(A2:A7)
C10C10=SUMPRODUCT($C2:$C7,B2:B7)/SUM(B2:B7)

But do you think it's appropriate to be using a weighted average at all in this context? What is the answer telling you, and is it meaningful information?
 
Upvote 0
Solution

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top