Sumifs where columns are transposed and contain duplicate labels

drluke

Active Member
Joined
Apr 17, 2014
Messages
284
How can I do a SUMIFS (or similar) where columns/rows are transposed and columns have the same label (like B&D below). In my data sheet data is organised like:

3100358731003800
Talent200320124256
Sourcing907785784
Media456930941
Talent42625244256
Sourcing4977485287
Media5693626365

<tbody>
</tbody>


In my 2nd worksheet the columns/rows are transposed but I need to be able to sum the total of all columns including combining col B & D (3100) for Sourcing etc. without the need to change/add anything to the datasheet. Eg the total for Sourcing/3100 = 757

TalentSourcing
3100
3587

<tbody>
</tbody>


Any advise much appreciated.​
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
3100358731003800TalentSourcing
Talent2003201242563100626587
Sourcing9077857843587345151
Media456930941
Talent42625244256
Sourcing4977485287
Media5693626365

<tbody>
</tbody>

In H2 enter, copy across, and down:

=SUMIFS(INDEX($B$2:$E$7,0,MATCH($G2,$B$1:$E$1,0)),$A$2:$A$7,H$1)
 

MARZIOTULLIO

Well-known Member
Joined
Aug 22, 2015
Messages
767
A
B
C
D
E
F
G
1
3100​
3587​
3100​
3800​
sheet1
2
Talent
200​
320​
124​
256​
3
Sourcing
90​
77​
85​
784​
4
Media
45​
69​
30​
941​
5
Talent
426​
25​
24​
4256​
6
Sourcing
497​
74​
85​
287​
7
Media
569​
36​
26​
365​

<tbody>
</tbody>


A
B
C
D
E
1
TalentSourcingsheet2
2
3100​
774​
757​
3
3587​
345​
151​

<tbody>
</tbody>

sheet2

B2
=SUMPRODUCT((Sheet1!$B$1:$E$1=Sheet2!$A2)*(Sheet1!$A$2:$A$7=Sheet2!B$1)*(Sheet1!$B$2:$E$7)) copy down and across

 
Last edited:

Forum statistics

Threads
1,136,775
Messages
5,677,661
Members
419,710
Latest member
Kvt

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
Top