Combined sumif or similar

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
I have 2 data tables with colours in row 1. The same colours can be in both data tables (not
necessarily in the same columns). In A2-A100 I have names. I need to sum all the colour red
sales made by Smith from both data tables into one consolidated table.
How can I do this without having to do for example (sumif table 1) = (sumif table 2)
Summary
ABCDE
1 RedYellowGreenBlack
2Smith
3Jones
4Wright
5Bloom
Table 1
ABCDE
1 GreenBlackYellowRed
2Smith2056387100
3Jones36145459583
4Wright8969833758
5Bloom10121156921
Table 2
ABCDE
1 BlackRedGreenYellow
2Smith6853875620
3Jones81245914536
4Wright2323369889
5Bloom1056211101
<colgroup><col width="64" style="width: 48pt;" span="9"> <tbody> </tbody>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
In B2 enter, copy across, and down:

=SUM(SUMIFS(INDEX(Sheet1!$B:$E,0,MATCH(B$1,INDEX(Sheet1!$B:$E,1,0),0)),Sheet1!$A:$A,$A2),
SUMIFS(INDEX(Sheet2!$B:$E,0,MATCH(B$1,INDEX(Sheet2!$B:$E,1,0),0)),Sheet2!$A:$A,$A2))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,931
Members
449,274
Latest member
mrcsbenson

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