Sumproduct Multiple criteria same column

vsr_shimla

New Member
Joined
Sep 23, 2019
Messages
6
Pls help I want to find the Weighted average of the following data in a single column :
I have tried Sumproduct(--(Heads="Freight")*(Value),(Heads="Sale")*(Value))/Sum(Sale)

COUNTY Heads Value
A Sale 200
A Freight 35
A Distance 50
B Sale 300
B Freight 50
B Distance 100
C Sale 200
C Freight 35
C Distance 50


Regards
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Formula in E2
=SUMIF(B:B,"Sale",C:C)

Formula in G2 copied down
=SUMPRODUCT((B$2:B$8="sale")*C$2:C$8,(B3:B9=F2)*C3:C9)/E$2

M.

Thanks Marcelo, I got a little lost, because I never understood what data should add and multiply (or never explained :LOL:)
 
Upvote 0
Thanks Marcelo, I got a little lost, because I never understood what data should add and multiply (or never explained :LOL:)


Yes, initially I did not understand either, but observing the desired results I suggested a formula. Looks like I got it right :)

M.
 
Upvote 0

Forum statistics

Threads
1,215,886
Messages
6,127,575
Members
449,385
Latest member
KMGLarson

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