Sumif if other criteria is in another table

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
293
Office Version
  1. 365
Platform
  1. Windows
Sir,
I need to find the total percentage from the percent table in which other criteria is parallel but is another table.. please see table below


sample.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXY
1Nour ChenTheresa PrenticeMontana GrimesPiotr VaughnMyah BallardKeanan EspinosaArmeniaNigeriaIndiaUSAHondurasTogoGeorgiaMauritaniaTrinidad and TobagoEXPECTED RESULT%
218%1%5%3%6%1%AEBDEECECABCDE
313%1%6%2%2%1%BACEACDCAArmeniaNour Chen26%25%19%17%14%
45%1%8%1%4%18%CBDCBDEDBNigeriaTheresa Prentice
56%1%7%1%5%13%DCEDCEAECIndiaMontana Grimes
68%5%6%18%6%1%EDAEDABADUSAPiotr Vaughn
77%3%5%13%8%1%AEBAEBCBEHondurasMyah Ballard
86%6%4%1%7%5%BCBCCBDBATogoKeanan Espinosa
95%2%3%1%6%3%CECDDCECBGeorgiaMontana Grimes
104%4%2%5%5%6%DCCEECCDCMauritaniaPiotr Vaughn
113%18%1%3%4%2%EDDCCDDEDTrinidad and TobagoMyah Ballard
122%13%1%6%1%4%CEECEEDCE
131%5%18%2%18%5%DADACAEDC
141%6%13%4%13%6%EBEBDBACD
151%8%1%5%1%8%ABACECBAE
161%7%1%6%1%7%BCBDADBBC
175%6%5%8%5%6%BDBEBECCD
183%5%3%7%3%5%CCCABCCDE
196%4%6%6%2%4%DDDBCDDEA
202%3%2%5%3%3%EEACDEEAB
214%2%4%4%1%2%CAADAAABC
Data Sheet (2)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Check this and revert -

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Nour ChenTheresa PrenticeMontana GrimesPiotr VaughnMyah BallardKeanan EspinosaArmeniaNigeriaIndiaUSAHondurasTogoGeorgiaMauritaniaTrinidad and TobagoEXPECTED RESULT%
20.180.010.050.030.060.01AEBDEECECABCDE
30.130.010.060.020.020.01BACEACDCAArmeniaNour Chen26%25%19%17%14%
40.050.0050.080.010.040.18CBDCBDEDBNigeriaTheresa Prentice8%15%23%33%22%
50.060.0050.070.010.050.13DCEDCEAECIndiaMontana Grimes13%20%14%33%21%
60.080.050.060.180.060.005EDAEDABADUSAPiotr Vaughn22%10%21%15%33%
70.070.030.050.130.080.005AEBAEBCBEHondurasMyah Ballard4%12%36%28%21%
80.060.060.040.0050.070.05BCBCCBDBATogoKeanan Espinosa8%12%23%31%27%
90.050.020.030.0050.060.03CECDDCECBGeorgiaMontana Grimes24%7%20%18%31%
100.040.040.020.050.050.06DCCEECCDCMauritaniaPiotr Vaughn28%24%21%15%13%
110.030.180.010.030.040.02EDDCCDDEDTrinidad and TobagoMyah Ballard11%13%36%28%13%
120.020.130.010.060.010.04CEECEEDCE
130.010.050.180.020.180.05DADACAEDC
140.010.060.130.040.130.06EBEBDBACD
150.0050.080.0050.050.0050.08ABACECBAE
160.0050.070.0050.060.0050.07BCBDADBBC
170.050.060.050.080.050.06BDBEBECCD
180.030.050.030.070.030.05CCCABCCDE
190.060.040.060.060.020.04DDDBCDDEA
200.020.030.020.050.030.03EEACDEEAB
210.040.020.040.040.010.02CAADAAABC
Sheet1
Cell Formulas
RangeFormula
U3:Y3U3=SUMIFS($A:$A,$H:$H,U$2)
U4:Y4U4=SUMIFS($B:$B,$I:$I,U$2)
U5:Y5U5=SUMIFS($C:$C,$J:$J,U$2)
U6:Y6U6=SUMIFS($D:$D,$K:$K,U$2)
U7:Y7U7=SUMIFS($E:$E,$L:$L,U$2)
U8:Y8U8=SUMIFS($F:$F,$M:$M,U$2)
U9:Y9U9=SUMIFS($C:$C,$N:$N,U$2)
U10:Y10U10=SUMIFS($D:$D,$O:$O,U$2)
U11:Y11U11=SUMIFS($E:$E,$P:$P,U$2)
 
Upvote 0
Check this and revert -

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Nour ChenTheresa PrenticeMontana GrimesPiotr VaughnMyah BallardKeanan EspinosaArmeniaNigeriaIndiaUSAHondurasTogoGeorgiaMauritaniaTrinidad and TobagoEXPECTED RESULT%
20.180.010.050.030.060.01AEBDEECECABCDE
30.130.010.060.020.020.01BACEACDCAArmeniaNour Chen26%25%19%17%14%
40.050.0050.080.010.040.18CBDCBDEDBNigeriaTheresa Prentice8%15%23%33%22%
50.060.0050.070.010.050.13DCEDCEAECIndiaMontana Grimes13%20%14%33%21%
60.080.050.060.180.060.005EDAEDABADUSAPiotr Vaughn22%10%21%15%33%
70.070.030.050.130.080.005AEBAEBCBEHondurasMyah Ballard4%12%36%28%21%
80.060.060.040.0050.070.05BCBCCBDBATogoKeanan Espinosa8%12%23%31%27%
90.050.020.030.0050.060.03CECDDCECBGeorgiaMontana Grimes24%7%20%18%31%
100.040.040.020.050.050.06DCCEECCDCMauritaniaPiotr Vaughn28%24%21%15%13%
110.030.180.010.030.040.02EDDCCDDEDTrinidad and TobagoMyah Ballard11%13%36%28%13%
120.020.130.010.060.010.04CEECEEDCE
130.010.050.180.020.180.05DADACAEDC
140.010.060.130.040.130.06EBEBDBACD
150.0050.080.0050.050.0050.08ABACECBAE
160.0050.070.0050.060.0050.07BCBDADBBC
170.050.060.050.080.050.06BDBEBECCD
180.030.050.030.070.030.05CCCABCCDE
190.060.040.060.060.020.04DDDBCDDEA
200.020.030.020.050.030.03EEACDEEAB
210.040.020.040.040.010.02CAADAAABC
Sheet1
Cell Formulas
RangeFormula
U3:Y3U3=SUMIFS($A:$A,$H:$H,U$2)
U4:Y4U4=SUMIFS($B:$B,$I:$I,U$2)
U5:Y5U5=SUMIFS($C:$C,$J:$J,U$2)
U6:Y6U6=SUMIFS($D:$D,$K:$K,U$2)
U7:Y7U7=SUMIFS($E:$E,$L:$L,U$2)
U8:Y8U8=SUMIFS($F:$F,$M:$M,U$2)
U9:Y9U9=SUMIFS($C:$C,$N:$N,U$2)
U10:Y10U10=SUMIFS($D:$D,$O:$O,U$2)
U11:Y11U11=SUMIFS($E:$E,$P:$P,U$2)
thanks man, i tried that solution already..it works.. but i am looking for a formula that will consider the criteria under column S & T..
 
Upvote 0
but i am looking for a formula that will consider the criteria under column S & T.
Are you looking for this...

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Nour ChenTheresa PrenticeMontana GrimesPiotr VaughnMyah BallardKeanan EspinosaArmeniaNigeriaIndiaUSAHondurasTogoGeorgiaMauritaniaTrinidad and TobagoEXPECTED RESULT%
20.180.010.050.030.060.01AEBDEECECABCDE
30.130.010.060.020.020.01BACEACDCAArmeniaNour Chen26%25%19%17%14%
40.050.0050.080.010.040.18CBDCBDEDBNigeriaTheresa Prentice8%15%23%33%22%
50.060.0050.070.010.050.13DCEDCEAECIndiaMontana Grimes13%20%14%33%21%
60.080.050.060.180.060.005EDAEDABADUSAPiotr Vaughn22%10%21%15%33%
70.070.030.050.130.080.005AEBAEBCBEHondurasMyah Ballard4%12%36%28%21%
80.060.060.040.0050.070.05BCBCCBDBATogoKeanan Espinosa8%12%23%31%27%
90.050.020.030.0050.060.03CECDDCECBGeorgiaMontana Grimes24%7%20%18%31%
100.040.040.020.050.050.06DCCEECCDCMauritaniaPiotr Vaughn28%24%21%15%13%
110.030.180.010.030.040.02EDDCCDDEDTrinidad and TobagoMyah Ballard11%13%36%28%13%
120.020.130.010.060.010.04CEECEEDCE
130.010.050.180.020.180.05DADACAEDC
140.010.060.130.040.130.06EBEBDBACD
150.0050.080.0050.050.0050.08ABACECBAE
160.0050.070.0050.060.0050.07BCBDADBBC
170.050.060.050.080.050.06BDBEBECCD
180.030.050.030.070.030.05CCCABCCDE
190.060.040.060.060.020.04DDDBCDDEA
200.020.030.020.050.030.03EEACDEEAB
210.040.020.040.040.010.02CAADAAABC
Sheet1
Cell Formulas
RangeFormula
U3:Y11U3=SUM(INDEX($A$2:$F$1000,,MATCH($T3,$A$1:$F$1,0))*((INDEX($A$2:$P$1000,,MATCH($S3,$A$1:$P$1,0))=U$2)*1))
 
Upvote 0
Solution
try this:
Excel Formula:
U3=SUMIFS(OFFSET($A$1,0,MATCH($T3,$A$1:$F$1,0)-1,21),OFFSET($H$1,0,MATCH($S3,$H$1:$P$1,0)-1,21),U$2)
 
Upvote 0
Are you looking for this...

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Nour ChenTheresa PrenticeMontana GrimesPiotr VaughnMyah BallardKeanan EspinosaArmeniaNigeriaIndiaUSAHondurasTogoGeorgiaMauritaniaTrinidad and TobagoEXPECTED RESULT%
20.180.010.050.030.060.01AEBDEECECABCDE
30.130.010.060.020.020.01BACEACDCAArmeniaNour Chen26%25%19%17%14%
40.050.0050.080.010.040.18CBDCBDEDBNigeriaTheresa Prentice8%15%23%33%22%
50.060.0050.070.010.050.13DCEDCEAECIndiaMontana Grimes13%20%14%33%21%
60.080.050.060.180.060.005EDAEDABADUSAPiotr Vaughn22%10%21%15%33%
70.070.030.050.130.080.005AEBAEBCBEHondurasMyah Ballard4%12%36%28%21%
80.060.060.040.0050.070.05BCBCCBDBATogoKeanan Espinosa8%12%23%31%27%
90.050.020.030.0050.060.03CECDDCECBGeorgiaMontana Grimes24%7%20%18%31%
100.040.040.020.050.050.06DCCEECCDCMauritaniaPiotr Vaughn28%24%21%15%13%
110.030.180.010.030.040.02EDDCCDDEDTrinidad and TobagoMyah Ballard11%13%36%28%13%
120.020.130.010.060.010.04CEECEEDCE
130.010.050.180.020.180.05DADACAEDC
140.010.060.130.040.130.06EBEBDBACD
150.0050.080.0050.050.0050.08ABACECBAE
160.0050.070.0050.060.0050.07BCBDADBBC
170.050.060.050.080.050.06BDBEBECCD
180.030.050.030.070.030.05CCCABCCDE
190.060.040.060.060.020.04DDDBCDDEA
200.020.030.020.050.030.03EEACDEEAB
210.040.020.040.040.010.02CAADAAABC
Sheet1
Cell Formulas
RangeFormula
U3:Y11U3=SUM(INDEX($A$2:$F$1000,,MATCH($T3,$A$1:$F$1,0))*((INDEX($A$2:$P$1000,,MATCH($S3,$A$1:$P$1,0))=U$2)*1))
yes..it worx.. thanks man..
 
Upvote 0
Another option (I would avoid the volatile function OFFSET option).

23 11 23.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1Nour ChenTheresa PrenticeMontana GrimesPiotr VaughnMyah BallardKeanan EspinosaArmeniaNigeriaIndiaUSAHondurasTogoGeorgiaMauritaniaTrinidad and TobagoEXPECTED RESULT%
218%1%5%3%6%1%AEBDEECECABCDE
313%1%6%2%2%1%BACEACDCAArmeniaNour Chen26%25%19%17%14%
45%1%8%1%4%18%CBDCBDEDBNigeriaTheresa Prentice8%15%23%33%22%
56%1%7%1%5%13%DCEDCEAECIndiaMontana Grimes13%20%14%33%21%
68%5%6%18%6%1%EDAEDABADUSAPiotr Vaughn22%10%21%15%33%
77%3%5%13%8%1%AEBAEBCBEHondurasMyah Ballard4%12%36%28%21%
86%6%4%1%7%5%BCBCCBDBATogoKeanan Espinosa8%12%23%31%27%
95%2%3%1%6%3%CECDDCECBGeorgiaMontana Grimes24%7%20%18%31%
104%4%2%5%5%6%DCCEECCDCMauritaniaPiotr Vaughn28%24%21%15%13%
113%18%1%3%4%2%EDDCCDDEDTrinidad and TobagoMyah Ballard11%13%36%28%13%
122%13%1%6%1%4%CEECEEDCE
131%5%18%2%18%5%DADACAEDC
141%6%13%4%13%6%EBEBDBACD
151%8%1%5%1%8%ABACECBAE
161%7%1%6%1%7%BCBDADBBC
175%6%5%8%5%6%BDBEBECCD
183%5%3%7%3%5%CCCABCCDE
196%4%6%6%2%4%DDDBCDDEA
202%3%2%5%3%3%EEACDEEAB
214%2%4%4%1%2%CAADAAABC
Sum
Cell Formulas
RangeFormula
U3:Y11U3=LET(r,$A$2:$P$21,h,$A$1:$P$1,SUM(FILTER(FILTER(r,h=$T3),FILTER(r,h=$S3)=U$2,0)))
 
Upvote 1

Forum statistics

Threads
1,215,180
Messages
6,123,504
Members
449,101
Latest member
mgro123

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