Sumifs or another way round

rdev

Active Member
Joined
Dec 3, 2007
Messages
273
I have been stuck with this problem of having a sumifs formula to extract data from a table and place it in anothet format , see attached , I want to sum the data in column F& G based on the country and code and year
Any help would be appreciated . The file is shared

sumif.xlsx - Google Drive
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Insert the following in Cells J13:M13 and autofill down.



=SUMIFS($F$4:$F$16,$E$4:$E$16,$I13,$D$4:$D$16,J$10)
=SUMIFS($G$4:$G$16,$E$4:$E$16,$I13,$D$4:$D$16,K$10)
=SUMIFS($F$4:$F$16,$E$4:$E$16,$I13,$D$4:$D$16,L$10)
=SUMIFS($G$4:$G$16,$E$4:$E$16,$I13,$D$4:$D$16,M$10)

<tbody>
</tbody>
 
Last edited:
Upvote 0
Row\Col
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
3​
ClusterBUCOConp NameAcc_codeY2016Y2017
4​
BldgSMDubai
1101
3400​
6800​
5​
BldgSMDubai
1203
3200​
6400​
6​
BldgSMDubai
1401
4900​
9800​
7​
BldgSMDubai
1203
3100​
6200​
8​
BldgSMDubai
1611
4100​
8200​
9​
BldgSMDubai
1609​
4800​
9600​
10​
BldgSMDubai
1401
5000​
10000​
DubaiDubaiSri LankaSri Lanka
11​
FBSri Lanka
1203
1500​
3000​
Y2016Y2017Y2016Y2017
12​
FBSri Lanka
1611
4000​
8000​
SMSMFBFB
13​
FBSri Lanka
1401
4200​
8400​
1101​
3400​
6800​
3100​
6200​
14​
FBSri Lanka
1203
3900​
7800​
1203​
6300​
12600​
10400​
20800​
15​
FBSri Lanka
1101
3100​
6200​
1401​
9900​
19800​
4200​
8400​
16​
FBSri Lanka
1203
5000​
10000​
1611​
4100​
8200​
4000​
8000​
17​
1609​
4800​
9600​
0​
0​
18​

In J13 enter, copy across, and down:

=SUMIFS(INDEX($F$4:$G$16,0,MATCH(J$11,$F$3:$G$3,0)),$E$4:$E$16,$I13,$D$4:$D$16,J$10,$C$4:$C$16,J$12)
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,981
Members
448,934
Latest member
audette89

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