Hi everyone,
I have the following data, which is only a snapshot:
* col 1 and 2 are category and sub-category, col 3 to col 131 is periods from Oct 2023 to.....whatever
* what periods to summarise is determined by the two fields at the top Beginning and Ending, where someone can choose two periods in the range col 3-131. In the screen below I have only shown Dec 24, Jan 25, Feb 25
* I currently have long, complex formulas that create summary tables, which I further use for graphs.
* current formulas are many: unique to create the categories, then index/match to pick up the periods, and then sumproduct to populate these rows and columns
I'm sure there is a better way to get this done more efficiently. I managed to pull the respective columns with choosecols in a LET function but cant get the grouping down by category. I tried this LET thing before and got it working but that was more copying and adjusting with the help of someone from this forum. . I just don't get this thing completely .
I would like to achieve the small table below the row "desired result." The number of columns and subsequent calcs will depend on the range between beginning and end.
Thanks to everyone for any help.
Cheers H
I have the following data, which is only a snapshot:
* col 1 and 2 are category and sub-category, col 3 to col 131 is periods from Oct 2023 to.....whatever
* what periods to summarise is determined by the two fields at the top Beginning and Ending, where someone can choose two periods in the range col 3-131. In the screen below I have only shown Dec 24, Jan 25, Feb 25
* I currently have long, complex formulas that create summary tables, which I further use for graphs.
* current formulas are many: unique to create the categories, then index/match to pick up the periods, and then sumproduct to populate these rows and columns
I'm sure there is a better way to get this done more efficiently. I managed to pull the respective columns with choosecols in a LET function but cant get the grouping down by category. I tried this LET thing before and got it working but that was more copying and adjusting with the help of someone from this forum. . I just don't get this thing completely .
I would like to achieve the small table below the row "desired result." The number of columns and subsequent calcs will depend on the range between beginning and end.
Test.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
GD | GE | GF | GG | GH | GI | GJ | GK | |||
42 | Select Beginning | Dec-24 | 17 | |||||||
43 | Select End | Jan-25 | 18 | |||||||
44 | ||||||||||
45 | ||||||||||
46 | Category | Sub | Dec-24 | Jan-25 | Feb-25 | |||||
47 | Housing | Rent | -8,780 | -8,780 | -8,780 | |||||
48 | Housing | Electricity | -118 | -214 | -337 | |||||
49 | Housing | Gas | 0 | -247 | 0 | |||||
50 | Housing | Water | -92 | -227 | -115 | |||||
51 | Housing | Comms | -346 | -346 | -346 | |||||
52 | Housing | Pay TV | -54 | -54 | -35 | |||||
53 | Housing | Insurance | -12 | -12 | -12 | |||||
54 | Food | Supermarket | -1,940 | -2,410 | -2,410 | |||||
55 | Food | Harris Farm | -353 | 0 | 0 | |||||
56 | Food | Other | 0 | 0 | 0 | |||||
57 | Food | Coffee | -102 | -102 | -102 | |||||
58 | Food | Pet Food | -70 | -257 | -257 | |||||
59 | Food | Kmart | -113 | 0 | 0 | |||||
60 | Health | Health Insurance | -312 | -811 | -811 | |||||
61 | Health | Fitness | -227 | -227 | -227 | |||||
62 | Health | Medical | -328 | -465 | -200 | |||||
63 | Health | Pharmacy | 0 | -400 | 0 | |||||
64 | Health | Vet | 0 | 0 | -300 | |||||
65 | Education | School Fees | 0 | 0 | 0 | |||||
66 | Education | BJJ | -410 | -410 | -410 | |||||
67 | Education | Muay Thai | -260 | 0 | 0 | |||||
68 | Education | Other | 0 | 0 | 0 | |||||
69 | Car | Lease | -13,414 | 0 | -2,267 | |||||
70 | Car | Fuel | -843 | -771 | -771 | |||||
71 | Car | Registration | 0 | 0 | -1,183 | |||||
72 | Car | Repairs | 0 | 0 | 0 | |||||
73 | Car | Other | -20 | -134 | -1,200 | |||||
74 | …........ | |||||||||
75 | ||||||||||
76 | Desired Result | |||||||||
77 | Category | Dec-24 | Jan-25 | Feb-25 | Sum | Average | Percent of | |||
78 | Housing | -9,402 | -9,880 | -9,624 | -28,907 | -9,636 | 46% | |||
79 | Food | -2,578 | -2,769 | -2,769 | -8,116 | -2,705 | 13% | |||
80 | Health | -867 | -1,903 | -1,538 | -4,308 | -1,436 | 7% | |||
81 | Education | -670 | -410 | -410 | -1,489 | -496 | 2% | |||
82 | Car | -14,277 | -905 | -5,421 | -20,603 | -6,868 | 32% | |||
83 | Subtotal | -27,794 | -15,866 | -19,762 | -63,422 | -21,141 | 100% | |||
CashFlow |
Cell Formulas | ||
---|---|---|
Range | Formula | |
GF78:GH78 | GF78 | =SUM(GF47:GF53) |
GI78:GI82 | GI78 | =SUM(GF78:GH78) |
GJ78:GJ82 | GJ78 | =AVERAGE(GF78:GH78) |
GK78:GK82 | GK78 | =PERCENTOF(GF78:GH78,$GF$78:$GH$82) |
GF79:GH79 | GF79 | =SUM(GF54:GF59) |
GF80:GH80 | GF80 | =SUM(GF60:GF64) |
GF81:GH81 | GF81 | =SUM(GF65:GF68) |
GF82:GH82 | GF82 | =SUM(GF69:GF73) |
GF83:GK83 | GF83 | =SUM(GF78:GF82) |
Thanks to everyone for any help.
Cheers H