SUM and Filter Formula

ChetanPuri

Board Regular
Joined
Sep 5, 2018
Messages
97
Office Version
  1. 365
Platform
  1. Windows
Dear Excel Experts,

Can you please advise what am I doing wrong here. I am trying to create a summaryy by Work ID, then codes column Aand then matching the headerss. Any hep will be appreciated.
Many thanks,


V17 BAS Review 05 December 2024.xlsm
ABCDE
1PeriodJUL24AUG24
2Costing Work ID10Monthly
3CODESEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A1G11#VALUE!$0.00$0.00
6A2G14$0.00$0.00$0.00
7A4G15$0.00$0.00$0.00
8A5G10$0.00$0.00$0.00
9C1G1$0.00$0.00$0.00
10S1G2$0.00$0.00$0.00
11S2$0.00$0.00$0.00
12Total#VALUE!$0.00$0.00
BAS SUMMARY _MONTHLY
Cell Formulas
RangeFormula
C5C5=SUM(FILTER('GST Reconciliation'!$D$4:$F$33,('GST Reconciliation'!$D$2='BAS SUMMARY _MONTHLY'!$C$2)*('GST Reconciliation'!$A$5:$A$33,'BAS SUMMARY _MONTHLY'!A5)))
C12:E12C12=SUM(C5:C11)
Cells with Data Validation
CellAllowCriteria
C1:D1List='All Transaction'!$F:$F


V17 BAS Review 05 December 2024.xlsm
ABCDEF
1PeriodJUL24SEP24
2Costing Work ID10Monthly
3CODESTransaction TypeEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A0Not Required For BASAP INV$ 2,060,521$ 10,877$ 2,071,398
6A0Not Required For BASDR DBT$ 0$ 0$ 0
7A0Not Required For BASAP CRD($ (1,623,255))$ 0($ (1,623,255))
8A0Not Required For BASAP PPI$ 29,432$ 0$ 29,432
9A0Not Required For BASAP PPC($ (11,550))$ 0($ (11,550))
10A1G11AP INV$ 25,029,828$ 2,502,983$ 27,532,811
11A1G11AP CRD($ (173,748))($ (17,375))($ (191,123))
12A1G11DR DBT$ 0$ 0$ 0
13A1G11AR ADJ$ 0$ 0$ 0
14A1G11AP PPC$ 1,268$ 127$ 1,394
15A1G11AP PPI$ 552$ 55$ 607
16A2G14AP PPI$ 234$ 0$ 234
17A2G14AP INV$ 248,035$ 0$ 248,035
18A2G14AP CRD($ (50,914))$ 0($ (50,914))
19A4G15AP INV$ 4,280$ 0$ 4,280
20A4G15AP CRD($ (7))$ 0($ (7))
21A5G10AP INV$ 0$ 0$ 0
22C1G1G JNL$ 0$ 0$ 0
23C1G1AP PPI$ 0$ 0$ 0
24S0G3AR INV$ 0$ 0$ 0
25S0G3AR ADJ$ 0$ 0$ 0
26S0G3G JNL$ 0$ 0$ 0
27S0G3AR CSH$ 0$ 0$ 0
28S1G2AR INV$ 0$ 0$ 0
29S1G2AR ADJ$ 0$ 0$ 0
30S1G2AR CRD($ (0))$ 0($ (0))
31S1G2AR CSH$ 0$ 0$ 0
32S1G2G JNL$ 0$ 0$ 0
33S2AR INV$ 0$ 0$ 0
34Total$ 25,514,677$ 2,496,667$ 28,011,344
GST Reconciliation
Cell Formulas
RangeFormula
D34D34=SUM($D$4:$D$33)
E34E34=SUM($E$4:$E$33)
F34F34=SUM($F$4:$F$33)
Cells with Data Validation
CellAllowCriteria
D1:E1List='All Transaction'!$F:$F
 
1733465223749.png
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Still get this error


V17 BAS Review 05 December 2024.xlsm
ABCDEF
1PeriodJUL24JUL24
2Costing Work ID10Monthly
3CODESEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A1G11#VALUE!$737,322.52$8,110,547.26
6A2G14$35,863.48$0.00$35,863.48
7A4G15$4,096.60$0.00$4,096.60
8A5G10$0.00$0.00$0.00
9C1G1$0.00$0.00$0.00
10S1G2$0.00$0.00$0.00
11S2$0.00$0.00$0.00
12Total#VALUE!$737,322.52$8,150,507.34
BAS SUMMARY _MONTHLY
Cell Formulas
RangeFormula
C5C5=SUM(CHOOSECOLS(FILTER('GST Reconciliation'!$A$2:$U$34,'GST Reconciliation'!$A$2:$A$34,'BAS SUMMARY _MONTHLY'!A5),SEQUENCE(3,,XMATCH('BAS SUMMARY _MONTHLY'!$C$2,'GST Reconciliation'!$A$2:$U$2))))
D5:E5,C6:E11D5=SUMIFS('GST Reconciliation'!E:E,'GST Reconciliation'!$A:$A,'BAS SUMMARY _MONTHLY'!$A:$A)
C12:E12C12=SUM(C5:C11)
Cells with Data Validation
CellAllowCriteria
C1:D1List='All Transaction'!$F:$F
 
Upvote 0
Replace with appropriate range. Formula in D38.
Book1
ABCDEFGHIJKLMNOPQRSTU
1Period24-Jul24-SepPeriod24-Jul24-SepPeriod24-Jul24-Sep
2Costing Work ID10MonthlyCosting Work ID21QuarterlyCosting Work ID30Quaterly
3CODESTransaction TypeEx GSTGST AmountGST InclusiveCODESTransaction TypeEx GSTGST AmountGST InclusiveCODESTransaction TypeEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes000GST Codes - PurchaseBAS Codes000GST Codes - PurchaseBAS Codes000
5A0Not Required For BASAP INV2060520.9810877.062071398.04A0Not Required For BASAP INV7261.0907261.09A0Not Required For BASAP INV22069022069
6A0Not Required For BASDR DBT000A0Not Required For BASDR DBT000A0Not Required For BASDR DBT000
7A0Not Required For BASAP CRD-1623255.140-1623255.14A0Not Required For BASAP CRD000A0Not Required For BASAP CRD-19500-1950
8A0Not Required For BASAP PPI29432.26029432.26A0Not Required For BASAP PPI000A0Not Required For BASAP PPI000
9A0Not Required For BASAP PPC-115500-11550A0Not Required For BASAP PPC000A0Not Required For BASAP PPC000
10A1G11AP INV25029828.232502983.1127532811.34A1G11AP INV2523349.49252335.042775684.53A1G11AP INV6015937.52601593.926617531.44
11A1G11AP CRD-173747.75-17374.77-191122.52A1G11AP CRD-1389.41-138.92-1528.33A1G11AP CRD-24656.43-2465.67-27122.1
12A1G11DR DBT000A1G11DR DBT000A1G11DR DBT000
13A1G11AR ADJ000A1G11AR ADJ000A1G11AR ADJ000
14A1G11AP PPC1267.7126.771394.47A1G11AP PPC000A1G11AP PPC000
15A1G11AP PPI55255.2607.2A1G11AP PPI000A1G11AP PPI000
16A2G14AP PPI234.050234.05A2G14AP PPI000A2G14AP PPI54783054783
17A2G14AP INV248034.810248034.81A2G14AP INV17602.75017602.75A2G14AP INV20642.21020642.21
18A2G14AP CRD-50913.540-50913.54A2G14AP CRD-7190-719A2G14AP CRD-38143.680-38143.68
19A4G15AP INV4279.9604279.96A4G15AP INV159.50159.5A4G15AP INV7573.9907573.99
20A4G15AP CRD-70-7A4G15AP CRD000A4G15AP CRD000
21A5G10AP INV000A5G10AP INV74000740081400A5G10AP INV000
22C1G1G JNL000C1G1G JNL000C1G1G JNL000
23C1G1AP PPI000C1G1AP PPI000C1G1AP PPI000
24S0G3AR INV000S0G3AR INV-5.24E-1200S0G3AR INV000
25S0G3AR ADJ000S0G3AR ADJ000S0G3AR ADJ000
26S0G3G JNL000S0G3G JNL000S0G3G JNL000
27S0G3AR CSH000S0G3AR CSH000S0G3AR CSH000
28S1G2AR INV1.69E-0901.69E-09S1G2AR INV1.06E-0900S1G2AR INV5.97E-1300
29S1G2AR ADJ4.66E-1004.66E-10S1G2AR ADJ-3.64E-1200S1G2AR ADJ000
30S1G2AR CRD-5.33E-150-5.33E-15S1G2AR CRD-7.39E-1300S1G2AR CRD000
31S1G2AR CSH000S1G2AR CSH000S1G2AR CSH000
32S1G2G JNL000S1G2G JNL000S1G2G JNL000
33S2AR INV000S2AR INV000S2AR INV000
34Total25514676.562496667.3728011343.93Total2620264.42259596.122879860.54Total6056255.61599128.256655383.86
35
36
37
3810A0455148.110877.06466025.16
Sheet4
Cell Formulas
RangeFormula
D34D34=SUM($D$4:$D$33)
E34E34=SUM($E$4:$E$33)
F34F34=SUM($F$4:$F$33)
L34L34=SUM($L$4:$L$33)
M34M34=SUM($M$4:$M$33)
N34N34=SUM($N$4:$N$33)
S34S34=SUM($S$4:$S$33)
T34T34=SUM($T$4:$T$33)
U34U34=SUM($U$4:$U$33)
D38:F38D38=BYCOL(CHOOSECOLS(FILTER($A$2:$U$34,$A$2:$A$34=B38),SEQUENCE(3,,XMATCH(A38,$A$2:$U$2))),LAMBDA(x,SUM(x)))
Dynamic array formulas.
 
Upvote 0
it does work at the bottom of the sheet is there a way i can use it on my summary sheet
 
Upvote 0
okay great, I will give it a go many thanks, regards, Chetan
I am sorry, I tried and get this
V17 BAS Review 05 December 2024.xlsm
ABCDE
1PeriodSEP24SEP24
2Costing Work ID10Monthly
3CODESEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A1G11#SPILL!#CALC!#SPILL!
6A2G14#SPILL!#CALC!#SPILL!
7A4G15#SPILL!#CALC!#SPILL!
8A5G10#SPILL!#CALC!#SPILL!
9C1G1#SPILL!#CALC!#SPILL!
10S1G2#SPILL!#CALC!#SPILL!
11S2#CALC!10.00#CALC!
12Total#SPILL!#CALC!#SPILL!
BAS SUMMARY _MONTHLY
Cell Formulas
RangeFormula
C5:C11C5=BYCOL(CHOOSECOLS(FILTER('GST Reconciliation'!$A$2:$U$23,'GST Reconciliation'!$A$2:$A$23=A5),SEQUENCE(3,,XMATCH('BAS SUMMARY _MONTHLY'!$C$2,'GST Reconciliation'!$A$2:$U$2))),LAMBDA(x,SUM(x)))
D5:E11D5=@BYCOL(CHOOSECOLS(FILTER('GST Reconciliation'!$A$2:$U$23,'GST Reconciliation'!$A$2:$A$23=B5),SEQUENCE(3,,XMATCH('BAS SUMMARY _MONTHLY'!$C$2,'GST Reconciliation'!$A$2:$U$2))),LAMBDA(x,SUM(x)))
C12:E12C12=SUM(C5:C11)
Cells with Data Validation
CellAllowCriteria
C1:D1List='All Transaction'!$F:$F
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,719
Members
452,995
Latest member
isldboy

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