Sum the product of two cells in a table.

MrTedius

New Member
Joined
Apr 5, 2018
Messages
1
Hello All,

I have a table of a list of sales to customers and I am trying to create a formulae that will give me the total value of items sold to a customer.

Table
CustomerRecord TypeItemQtyPrice
Cust1SIItem121
Cust1SCItem111
Cust2SIItem232
Cust2SIItem151
Cust3SIItem222
Cust1SIItem222

<tbody>
</tbody>

For example I want to find the total value of things sold where Customer=Cust1 and RecordType=SI.
The price is per unit so I need the product of (Qty x Price). For this example I am expecting to get the result 6 (2*1 + 2*2).

I know how to sum over one column, for example get the number of items sold to Cust1 using sumifs, but I can find a way of get summing the product of two cells.

Any help would be great.
Thanks
 

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.

Excel 2010
ABCDE
1Criteria
2Cust1SI6
3
4CustomerRecord TypeItemQtyPrice
5Cust1SIItem121
6Cust1SCItem111
7Cust2SIItem232
8Cust2SIItem151
9Cust3SIItem222
10Cust1SIItem222
3a
Cell Formulas
RangeFormula
C2=SUMPRODUCT(--(A5:A10=A2),--(B5:B10=B2),D5:D10,E5:E10)
 
Upvote 0

Forum statistics

Threads
1,215,356
Messages
6,124,471
Members
449,163
Latest member
kshealy

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