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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Record Type[/TD]
[TD]Item[/TD]
[TD]Qty[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]Cust1[/TD]
[TD]SI[/TD]
[TD]Item1[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Cust1[/TD]
[TD]SC[/TD]
[TD]Item1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Cust2[/TD]
[TD]SI[/TD]
[TD]Item2[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Cust2[/TD]
[TD]SI[/TD]
[TD]Item1[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Cust3[/TD]
[TD]SI[/TD]
[TD]Item2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Cust1[/TD]
[TD]SI[/TD]
[TD]Item2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]

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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

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,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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