Sumproduct? multiple columns with a criteria

gobblechops

New Member
Joined
Apr 27, 2017
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I sure this will be an easy task for an expert....

C3:C30 contains prices
D3:D30 contains a name
F3:AH30 contain quantities

For example, row 3 has a name "Ken" in column C, a cost of £2.00 in column D and a varying number of quantities in columns F:AH.

I would like to multiply the cost by the total number of quantity on that row but also sum the total of all the lines with "Ken" using the same criteria as above. Different rows have different costs in column D and different total quantities in the rows.

Thank you in advance!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Something like this?

ABCDEFGHIJKLM
3NameKen253110710
4KenAl117335918
5Mary281261872
6TotalKen373566794
7328.5Jane213551868
8Elayne133942722
9Ken2.754241073210
10Jack4782811011

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
A7=SUMPRODUCT((D3:D10)*(C3:C10=A4)*F3:M10)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi Eric,

Thank you for your quick reply. I am glad to say, about 5 minutes after posting, I managed to get it and we had the same formula (although mine had more brackets?).

:cool:
 
Upvote 0
Glad you got it figured out. Sometimes you need parentheses/brackets, sometimes Excel ignores the ones you don't. In looking at my formula again, I realize that I didn't need the ones around D3:D10. :rolleyes:
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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