SUMPRODUCT with VLOOKUP

buff0x

New Member
Joined
Jul 24, 2014
Messages
9
Hi All,

I have the following table

ABC
Item128651
Item278749
Item3191403

<tbody>
</tbody>

And I have the following formula which works.
=SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4)

What I want to do is include vlookups into the sumproduct to pick them 3 items up from a big table of items.

Thanks

Paul
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi All,

I have the following table

ABC
Item128651
Item278749
Item3191403

<tbody>
</tbody>

And I have the following formula which works.
=SUMPRODUCT(B2:B4,C2:C4)/SUM(B2:B4)

What I want to do is include vlookups into the sumproduct to pick them 3 items up from a big table of items.

Thanks

Paul

Try this:

=SUMPRODUCT(IF(A2:A4={"Item1","Item2","Item3"},B2:B4),IF(A2:A4={"Item1","Item2","Item3"},C2:C4))/SUM(SUMIF(A2:A4,{"Item1","Item2","Item3"},B2:B4))

Entered with CTRL+SHFT+ENTR, not just enter. Change the row range as required.
 
Upvote 0
Try this:

=SUMPRODUCT(IF(A2:A4={"Item1","Item2","Item3"},B2:B4),IF(A2:A4={"Item1","Item2","Item3"},C2:C4))/SUM(SUMIF(A2:A4,{"Item1","Item2","Item3"},B2:B4))

Entered with CTRL+SHFT+ENTR, not just enter. Change the row range as required.

This done what I needed it to do, thank you.
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

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