Sum, Index and Match

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
94
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I'm at loss with Sum, Index & Match again. Can't seem to get it right all the time :(

I have this data and need to sum them based on the criteria given. For example, I need to sum Apple - Domestic in Group A & B. It's a long list, so will need a formula to sum them up automatically.

Any help is appreciated. Thanks!

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Group AGroup B
2AppleAppleTotalGrapeGrapeTotalOrangeOrangeTotalCherryCherryTotalAppleAppleTotalGrapeGrapeTotalOrangeOrangeTotalCherryCherryTotal
3EntitiesDomesticOverseasAppleDomesticOverseasGrapeDomesticOverseasOrangeDomesticOverseasCherryDomesticOverseasAppleDomesticOverseasGrapeDomesticOverseasOrangeDomesticOverseasCherry
4Co A5544663311011189
5Co B551100880330
6Co C0331100729055
7Co D2200220000
8
9
10TOTAL
11AppleDomestic15
12Overseas
13GrapeDomestic
14Overseas
15OrangeDomestic
16Overseas
17CherryDomestic
18Overseas
19
Sheet1
Cell Formulas
RangeFormula
D3,Y3,V3,S3,P3,M3,J3,G3D3=IF(ISBLANK(B2),"",B2)
Y4:Y7,V4:V7,S4:S7,P4:P7,M4:M7,J4:J7,G4:G7,D4:D7D4=SUM(B4:C4)
C11C11=SUM(B4:B7)+SUM(N4:N7)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Sorry, I didn't use any of the 3 functions that you mentioned. :oops:

22 07 21.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1Group AGroup B
2AppleAppleTotalGrapeGrapeTotalOrangeOrangeTotalCherryCherryTotalAppleAppleTotalGrapeGrapeTotalOrangeOrangeTotalCherryCherryTotal
3EntitiesDomesticOverseasAppleDomesticOverseasGrapeDomesticOverseasOrangeDomesticOverseasCherryDomesticOverseasAppleDomesticOverseasGrapeDomesticOverseasOrangeDomesticOverseasCherry
4Co A5544663311011189
5Co B551100880330
6Co C0331100729055
7Co D2200220000
8
9
10TOTAL
11AppleDomestic15
12Overseas6
13GrapeDomestic10
14Overseas7
15OrangeDomestic1
16Overseas10
17CherryDomestic8
18Overseas11
Sum
Cell Formulas
RangeFormula
C11:C18C11=SUMPRODUCT((B$2:Y$2=LOOKUP("zz",A$11:A11))*(B$3:Y$3=B11)*B$4:Y$7)
 
Upvote 0
Solution
Sorry, I didn't use any of the 3 functions that you mentioned. :oops:

22 07 21.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1Group AGroup B
2AppleAppleTotalGrapeGrapeTotalOrangeOrangeTotalCherryCherryTotalAppleAppleTotalGrapeGrapeTotalOrangeOrangeTotalCherryCherryTotal
3EntitiesDomesticOverseasAppleDomesticOverseasGrapeDomesticOverseasOrangeDomesticOverseasCherryDomesticOverseasAppleDomesticOverseasGrapeDomesticOverseasOrangeDomesticOverseasCherry
4Co A5544663311011189
5Co B551100880330
6Co C0331100729055
7Co D2200220000
8
9
10TOTAL
11AppleDomestic15
12Overseas6
13GrapeDomestic10
14Overseas7
15OrangeDomestic1
16Overseas10
17CherryDomestic8
18Overseas11
Sum
Cell Formulas
RangeFormula
C11:C18C11=SUMPRODUCT((B$2:Y$2=LOOKUP("zz",A$11:A11))*(B$3:Y$3=B11)*B$4:Y$7)
Thank you! As long as it works, any formula is fine 😁
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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