Advanced SUMPRODUCT function for multiple weighted averages

gigglesxx

New Member
Joined
Feb 14, 2018
Messages
5
Hi

I am an analyst and I need help with an advance use of the sum product function for weighted averages.

I am trying to calculate three different weighted averages within 1 of 50 groups of data. Each of the 50 groups of data have a different weighting score (different importance). I have tried to use the basic =sumproduct(A1:A16,B1:B16)/sum(B1:B16) however this only takes into account the weighting score of just group 1 (group 1 range is from A1:A16) however does not adjust the averages according to the weighting of the other 49 data groups.

PLEASE HELP ME

I am relatively new to excel.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi

Thank you for replying.

I am not sure how to attach a file on this forum, however i have copied and pasted my data into this reply to give you a rough idea.

Just to clarify, I would like to find out the weighted average of group 1 (1.1, 1.2 and 1.3) for each class, taking into account the weighting score of this group in relation to the other groups and their score of importance.

I have tried =sumproduct(F2:F4,D2:D4)/sum(D2:D4) however this only takes into account the weight score 5 and does not compare it to the other groups and their weighting scores.

Is there a way i can expand the formula to include the other scores?

Or is the =sumproduct function not the right function for this calculation and maybe i should use something else?

Any help would be much appreciated :)


NUMBERORIGIN DESTINATIONWEIGHTING SCORE (0 - 5)CLASSCOST
1.1MELBOURNEDESTINATION 15FIRST $ 100.00
1.2MELBOURNEDESTINATION 15BUSINESS $ 86.00
1.3MELBOURNEDESTINATION 15ECONOMY-$ 31.00
2.1MELBOURNEDESTINATION 22FIRST $ 234.00
2.2MELBOURNEDESTINATION 22BUSINESS -$ 41.00
2.3MELBOURNEDESTINATION 22ECONOMY-$ 104.00
3.1MELBOURNEDESTINATION 33FIRST $ 2,016.00
3.2MELBOURNEDESTINATION 33BUSINESS $ 1,056.00
3.3MELBOURNEDESTINATION 33ECONOMY-$ 900.00
4.1MELBOURNEDESTINATION 42FIRST-$ 900.00
4.2MELBOURNEDESTINATION 42BUSINESS $ 2,991.00
4.3MELBOURNEDESTINATION 42ECONOMY $ 2,116.00
5.1MELBOURNEDESTINATION 51FIRST $ 273.00
5.2MELBOURNEDESTINATION 51BUSINESS $ 3.00
5.3MELBOURNEDESTINATION 51ECONOMY-$ 171.00
6.1MELBOURNEDESTINATION 62FIRST $ 2,766.00
6.2MELBOURNEDESTINATION 62BUSINESS -$ 900.00
6.3MELBOURNEDESTINATION 62ECONOMY $ 1,991.00
7.1MELBOURNEDESTIANTION 74FIRST $ 7,877.00
7.2MELBOURNEDESTIANTION 74BUSINESS $ 6,092.00
7.3MELBOURNEDESTIANTION 74ECONOMY $ 4,065.00
8.1MELBOURNEDESTINATION 84FIRST $ 7,227.00
8.2MELBOURNEDESTINATION 84BUSINESS $ 5,342.00
8.3MELBOURNEDESTINATION 84ECONOMY $ 4,368.00
9.1MELBOURNEDESTINATION 94FIRST $ 8,127.00
9.2MELBOURNEDESTINATION 94BUSINESS $ 6,192.00
9.3MELBOURNEDESTINATION 94ECONOMY $ 4,142.00
10.1MELBOURNEDESTINATION 104FIRST $ 6,636.00
10.2MELBOURNEDESTINATION 104BUSINESS $ 4,961.00
10.3MELBOURNEDESTINATION 104ECONOMY $ 2,901.00
11.1MELBOURNEDESTINATION 114FIRST $ 7,627.00
11.2MELBOURNEDESTINATION 114BUSINESS $ 5,842.00
11.3MELBOURNEDESTINATION 114ECONOMY $ 3,792.00
12.1MELBOURNEDESTINATION 123FIRST $ 8,590.00
12.2MELBOURNEDESTINATION 123BUSINESS $ 7,696.00
12.3MELBOURNEDESTINATION 123ECONOMY-$ 900.00
13.1MELBOURNEDESTINATION 134FIRST $ 7,220.00
13.2MELBOURNEDESTINATION 134BUSINESS $ 5,210.00
13.3MELBOURNEDESTINATION 134ECONOMY $ 3,160.00
14.1MELBOURNEDESTINATION 143FIRST $ 7,002.00
14.2MELBOURNEDESTINATION 143BUSINESS $ 5,317.00
14.3MELBOURNEDESTINATION 143ECONOMY $ 4,787.00
15.1MELBOURNEDESTINATION 153FIRST $ 8,820.00
15.2MELBOURNEDESTINATION 153BUSINESS $ 7,646.00
15.3MELBOURNEDESTINATION 153ECONOMY
-$ 900.00
16.1MELBOURNEDESTINATION 163FIRST $ 5,456.00
16.2MELBOURNEDESTINATION 163BUSINESS
16.3MELBOURNEDESTINATION 163ECONOMY-$ 900.00
17.1MELBOURNEDESTINATION 173FIRST $ 5,681.00
17.2MELBOURNEDESTINATION 173BUSINESS $ 4,236.00
17.3MELBOURNEDESTINATION 173ECONOMY $ 3,056.00
18.1MELBOURNEDESTINATION 181FIRST-$ 900.00
18.2MELBOURNEDESTINATION 181BUSINESS $ 1,747.00
18.3MELBOURNEDESTINATION 181ECONOMY-$ 900.00
19.1MELBOURNEDESTINATION 193FIRST $ 6,520.00
19.2MELBOURNEDESTINATION 193BUSINESS $ 4,135.00
19.3MELBOURNEDESTINATION 193ECONOMY $ 3,735.00
20.1MELBOURNEDESTINATION 203FIRST $ 5,696.00
20.2MELBOURNEDESTINATION 203BUSINESS $ 4,251.00
20.3MELBOURNEDESTINATION 203ECONOMY $ 3,571.00
21.1MELBOURNEDESTINATION 213FIRST $ 8,590.00
21.2MELBOURNEDESTINATION 213BUSINESS -$ 900.00
21.3MELBOURNEDESTINATION 213ECONOMY $ 6,535.00
22.1MELBOURNEDESTINATION 221FIRST $ 2,497.00
22.2MELBOURNEDESTINATION 221BUSINESS $ 1,897.00
22.3MELBOURNEDESTINATION 221ECONOMY $ 1,297.00
23.1MELBOURNEDESTINATION 233FIRST-$ 900.00
23.2MELBOURNEDESTINATION 233BUSINESS $ 8,590.00
23.3MELBOURNEDESTINATION 233ECONOMY-$ 900.00
24.1MELBOURNEDESTINATION 240FIRST $ 1,135.00
24.2MELBOURNEDESTINATION 240BUSINESS $ 860.00
24.3MELBOURNEDESTINATION 240ECONOMY-$ 900.00
25.1MELBOURNEDESTINATION 251FIRST $ 3,909.00
25.2MELBOURNEDESTINATION 251BUSINESS $ 1,722.00
25.3MELBOURNEDESTINATION 251ECONOMY-$ 900.00
26.1MELBOURNEDESTINATION 260FIRST $ 2,191.00
26.2MELBOURNEDESTINATION 260BUSINESS $ 1,591.00
26.3MELBOURNEDESTINATION 260ECONOMY $ 1,141.00
27.1MELBOURNEDESTINATION 271FIRST $ 1,843.00
27.2MELBOURNEDESTINATION 271BUSINESS $ 1,113.00
27.3MELBOURNEDESTINATION 271ECONOMY-$ 900.00
28.1MELBOURNEDESTINATION 281FIRST $ 2,022.00
28.2MELBOURNEDESTINATION 281BUSINESS $ 1,062.00
28.3MELBOURNEDESTINATION 281ECONOMY $ 735.00
29.1MELBOURNEDESTINATION 292FIRST $ 7,212.00
29.2MELBOURNEDESTINATION 292BUSINESS $ 4,836.00
29.3MELBOURNEDESTINATION 292ECONOMY $ 4,436.00
30.1MELBOURNEDESTINATION 302FIRST-$ 900.00
30.2MELBOURNEDESTINATION 302BUSINESS $ 8,590.00
30.3MELBOURNEDESTINATION 302ECONOMY-$ 900.00
31.1MELBOURNEDESTINATION 310FIRST $ 1,060.00
31.2MELBOURNEDESTINATION 310BUSINESS $ 667.00
31.3MELBOURNEDESTINATION 310ECONOMY-$ 900.00
32.1MELBOURNEDESTINATION 322FIRST $ 7,002.00
32.2MELBOURNEDESTINATION 322BUSINESS $ 5,317.00
32.3MELBOURNEDESTINATION 322ECONOMY-$ 900.00
33.1MELBOURNEDESTINATION 331FIRST-$ 900.00
33.2MELBOURNEDESTINATION 331BUSINESS $ 8,590.00
33.3MELBOURNEDESTINATION 331ECONOMY-$ 900.00
34.1MELBOURNEDESTINATION 341FIRST-$ 900.00
34.2MELBOURNEDESTINATION 341BUSINESS $ 3,485.00
34.3MELBOURNEDESTINATION 341ECONOMY-$ 900.00
35.1MELBOURNEDESTINATION 353FIRST $ 7,627.00
35.2MELBOURNEDESTINATION 353BUSINESS $ 5,942.00
35.3MELBOURNEDESTINATION 353ECONOMY $ 3,892.00
36.1MELBOURNEDESTINATION 362FIRST $ 8,590.00
36.2MELBOURNEDESTINATION 362BUSINESS $ 8,064.00
36.3MELBOURNEDESTINATION 362ECONOMY-$ 900.00
37.1MELBOURNEDESTINATION 370FIRST $ 2,364.00
37.2MELBOURNEDESTINATION 370BUSINESS $ 1,927.00
37.3MELBOURNEDESTINATION 370ECONOMY $ 912.00
38.1MELBOURNEDESTINATION 380FIRST $ 791.00
38.2MELBOURNEDESTINATION 380BUSINESS $ 341.00
38.3MELBOURNEDESTINATION 380ECONOMY-$ 900.00
39.1MELBOURNEDESTINATION 390FIRST-$ 900.00
39.2MELBOURNEDESTINATION 390BUSINESS $ 1,391.00
39.3MELBOURNEDESTINATION 390ECONOMY-$ 900.00
40.1MELBOURNEDESTINATION 402FIRST $ 7,877.00
40.2MELBOURNEDESTINATION 402BUSINESS $ 6,192.00
40.3MELBOURNEDESTINATION 402ECONOMY $ 4,142.00
41.1MELBOURNEDESTINATION 411FIRST $ 8,590.00
41.2MELBOURNEDESTINATION 411BUSINESS $ 7,754.00
41.3MELBOURNEDESTINATION 411ECONOMY-$ 900.00
42.1MELBOURNEDESTINATION 422FIRST $ 8,590.00
42.2MELBOURNEDESTINATION 422BUSINESS $ 7,668.00
42.3MELBOURNEDESTINATION 422ECONOMY-$ 900.00
43.1MELBOURNEDESTINATION 430FIRST $ 1,966.00
43.2MELBOURNEDESTINATION 430BUSINESS $ 1,191.00
43.3MELBOURNEDESTINATION 430ECONOMY-$ 900.00
44.1MELBOURNEDESTINATION 441FIRST $ 4,752.00
44.2MELBOURNEDESTINATION 441BUSINESS $ 3,202.00
44.3MELBOURNEDESTINATION 441ECONOMY-$ 900.00
45.1MELBOURNEDESTINATION 450FIRST $ 2,491.00
45.2MELBOURNEDESTINATION 450BUSINESS $ 1,891.00
45.3MELBOURNEDESTINATION 450ECONOMY $ 891.00
46.1MELBOURNEDESTINATION 460FIRST $ 211.00
46.2MELBOURNEDESTINATION 460BUSINESS -$ 64.00
46.3MELBOURNEDESTINATION 460ECONOMY-$ 270.00
47.1MELBOURNEDESTINATION 472FIRST $ 7,627.00
47.2MELBOURNEDESTINATION 472BUSINESS $ 5,692.00
47.3MELBOURNEDESTINATION 472ECONOMY $ 3,642.00
48.1MELBOURNEDESTINATION 482FIRST $ 7,877.00
48.2MELBOURNEDESTINATION 482BUSINESS $ 6,192.00
48.3MELBOURNEDESTINATION 482ECONOMY $ 4,142.00
49.1MELBOURNEDESTINATION 490FIRST $ 7,086.00
49.2MELBOURNEDESTINATION 490BUSINESS $ 5,996.00
49.3MELBOURNEDESTINATION 490ECONOMY-$ 900.00
50.1MELBOURNEDESTINATION 501FIRST $ 8,590.00
50.2MELBOURNEDESTINATION 501BUSINESS $ 7,664.00
50.3MELBOURNEDESTINATION 371ECONOMY-$ 900.00

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hi,

Not sure I fully understand what it is you want to accomplish.
Can you show me an example of what the result would look like?
 
Upvote 0
Hi,

I realise I wasn't very clear on what i want. I have fixed up the data:

WEIGHTING SCORE (0-5)ORIGIN DESTINATIONCLASSCOSTAVERAGEWEIGHTED AVERAGE
5MELBOURNELONDONFIRST full flexi $ 3,000.00 $ 2,500.00 $ 3,300.00
5 FIRST flexi $ 2,500.00
5 FIRST restricted $ 2,000.00
5MELBOURNELONDONBUSINESS full flexi $ 1,800.00 $ 1,433.33 $ 1,850.00
5 BUSINESS flexi $ 1,500.00
5 BUSINESS restricted $ 1,000.00
5MELBOURNELONDONECONOMY full flexi $ 900.00 $ 700.00 $ 950.00
5 ECONOMY flexi $ 700.00
5 ECONOMY restricted $ 500.00
2MELBOURNEBERLINFIRST full flexi $ 3,500.00 $ 3,333.33 $ 3,100.00
2 FIRST flexi $ 3,300.00
2 FIRST restricted $ 3,200.00
2MELBOURNEBERLINBUSINESS full flexi $ 3,000.00 $ 2,733.33 $ 1,650.00
2 BUSINESS flexi $ 2,700.00
2 BUSINESS restricted $ 2,500.00
2MELBOURNEBERLINECONOMY full flexi $ 2,000.00 $ 1,766.67 $ 1,600.00
2 ECONOMY flexi $ 1,800.00
2 ECONOMY restricted $ 1,500.00
3MELBOURNESINGAPOREFIRST full flexi $ 1,500.00 $ 1,400.00 $ 1,450.00
3 FIRST flexi $ 1,400.00
3 FIRST restricted $ 1,300.00
3MELBOURNESINGAPOREBUSINESS full flexi $ 1,000.00 $ 916.67 $ 1,000.00
3 BUSINESS flexi $ 900.00
3 BUSINESS restricted $ 850.00
3MELBOURNESINGAPOREECONOMY full flexi $ 700.00 $ 583.33 $ 700.00
3 ECONOMY flexi $ 600.00
3 ECONOMY restricted $ 450.00
1MELBOURNEHONG KONGFIRST full flexi $ 4,000.00 $ 3,800.00 $ 3,400.00
1 FIRST flexi $ 3,900.00
1 FIRST restricted $ 3,500.00
1MELBOURNEHONG KONGBUSINESS full flexi $ 3,000.00 $ 2,500.00 $ 2,450.00
1 BUSINESS flexi $ 2,500.00
1 BUSINESS restricted $ 2,000.00
1MELBOURNEHONG KONGECONOMY full flexi $ 1,900.00 $ 1,466.67 $ 1,300.00
1 ECONOMY flexi $ 1,500.00
1 ECONOMY restricted $ 1,000.00
4MELBOURNESYDNEYFIRST full flexi $ 1,000.00 $ 1,566.67 $ 1,700.00
4 FIRST flexi $ 1,900.00
4 FIRST restricted $ 1,800.00
4MELBOURNESYDNEYBUSINESS full flexi $ 1,600.00 $ 1,466.67 $ 1,600.00
4 BUSINESS flexi $ 1,500.00
4 BUSINESS restricted $ 1,300.00
4MELBOURNESYDNEYECONOMY full flexi $ 1,000.00 $ 833.33 $ 950.00
4 ECONOMY flexi $ 850.00
4 ECONOMY restricted $ 650.00
TOTAL $ 27,000.00 $ 27,000.00

<colgroup><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>

The figures I am trying to calculate are the bold ones. If you sum them up, they would equate to the same total as the normal average calculation, however they increase and decrease (per travel class) depending on the importance of the group. Does this make better sense?

Thank you so much for trying to help :)
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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