Sumif/Sumproduct with non-continuous row

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
110
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I have few tables with a break in row in between the tables:

Book1
ABCDEFGHIJ
1CountryThailand
2ItemCar
3ColourRedCarRed70
4JanBlue0
5Feb5Green90
6MarTotal16
7AprBikeRed120
8MayBlue110
9JunGreen0
10Jul2Total23
11Aug
12Sep
13Oct
14Nov
15Dec
16Total7
17
18CountryThailand
19ItemBike
20ColourBlue
21Jan
22Feb
23Mar
24Apr6
25May
26Jun
27Jul
28Aug5
29Sep
30Oct
31Nov
32Dec
33Total11
34
35CountryThailand
36ItemBike
37ColourRed
38Jan
39Feb1
40Mar2
41Apr9
42May
43Jun
44Jul
45Aug
46Sep
47Oct
48Nov
49Dec
50Total12
51
52CountryThailand
53ItemCar
54ColourGreen
55Jan
56Feb
57Mar
58Apr
59May
60Jun
61Jul9
62Aug
63Sep
64Oct
65Nov
66Dec
67Total9
Sheet1
Cell Formulas
RangeFormula
H3H3=B16
I3:I5,I9I3=SUMIFS($B$16:$B$67,$B$2:$B$53,$F$3,$B$3:$B$54,$G3,$B$16:$B$67,$G$6)
H5H5=B67
H6,H10H6=SUM(H3:H5)
H7H7=B50
H8H8=B33
I7:I8I7=SUMIFS($B$16:$B$67,$B$2:$B$53,$F$7,$B$3:$B$54,$G7,$B$16:$B$67,$G$10)
B16,B67,B50,B33B16=SUM(B4:B15)

The result I want is in H3:H10. I tried Sumifs and Sumproduct, but the returned value is 0 (Green cells). Can anyone advise?

Thanks!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this in H3:

Excel Formula:
=IFERROR(SUM(OFFSET($B$3,MATCH($F$3&G3,$B$2:$B$67&$B$3:$B$68,0),0,12,1)),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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