Index Match or SUMPRODUCT Help

ripina

New Member
Joined
Nov 2, 2015
Messages
14
I have tried variations of index matches with if statements and SUMPRODUCT with multiple arrays all ending in errors. Can someone please help?

I need to SUM the Value Column in the Source Table by matching the COMPANY NAME, PURCH TYPE, AND CATEGORY. In the example below the correct results for Company A would be (from top to bottom)2, 0, 1 and for Company B 9, 9, 0. Any assistance would be greatly appreciated!

[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]Exact[/TD]
[TD]Exact[/TD]
[TD][/TD]
[TD]SOURCE TABLE[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Company A[/TD]
[TD]Company B[/TD]
[TD][/TD]
[TD]CATEGORY[/TD]
[TD]PURCH TYPE[/TD]
[TD]VALUE[/TD]
[TD]COMPANY[/TD]
[/TR]
[TR]
[TD]category 1[/TD]
[TD](result)[/TD]
[TD](result)[/TD]
[TD][/TD]
[TD]Category 1[/TD]
[TD]Exact[/TD]
[TD]2[/TD]
[TD]Company A[/TD]
[/TR]
[TR]
[TD]category 2[/TD]
[TD](result)[/TD]
[TD](result)[/TD]
[TD][/TD]
[TD]Category 2[/TD]
[TD]Exact[/TD]
[TD]1[/TD]
[TD]Company B[/TD]
[/TR]
[TR]
[TD]category 3[/TD]
[TD](result)[/TD]
[TD](result)[/TD]
[TD][/TD]
[TD]Category 1[/TD]
[TD]Alt[/TD]
[TD]5[/TD]
[TD]Company A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Category 3[/TD]
[TD]Alt[/TD]
[TD]2[/TD]
[TD]Company A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Category 1[/TD]
[TD]Exact[/TD]
[TD]9[/TD]
[TD]Company B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Category 2[/TD]
[TD]Exact[/TD]
[TD]5[/TD]
[TD]Company B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Category 2[/TD]
[TD]Exact[/TD]
[TD]3[/TD]
[TD]Company B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Category 3[/TD]
[TD]Exact[/TD]
[TD]1[/TD]
[TD]Company A[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi

With the example you posted try in B3:

=SUMIFS($G$3:$G$10,$E$3:$E$10,$A3,$F$3:$F$10,B$1,$H$3:$H$10,B$2)

Copy down and across
 
Upvote 0

Forum statistics

Threads
1,225,196
Messages
6,183,496
Members
453,164
Latest member
ralfpiere

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