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
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What's the reason for the red part?
Rich (BB code):
=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)))
 
Upvote 0
What's the reason for the red part?
Rich (BB code):
=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)))
Not sure as I am trying to match work Id which is in D2 of source worksheet and C2 in the result worksheet not sure what could be the case
 
Upvote 0
Are there more than 1 work ID? I only see one in the mini-sheet.
 
Upvote 0
Can you repost the sheet with multiple ID's?
 
Upvote 0
Can you repost the sheet with multiple ID's?
V17 BAS Review 05 December 2024.xlsm
ABCDE
1PeriodJUL24AUG24
2Costing Work ID10Monthly
3CODESEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A1G11$54,687,380.98#CALC!#CALC!
6A2G14$394,710.64$0.00$0.00
7A4G15$8,545.92$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$55,090,637.54#CALC!#CALC!
BAS SUMMARY _MONTHLY
Cell Formulas
RangeFormula
C5:E5D5=SUM(FILTER('GST Reconciliation'!$D$5:$F$33,('GST Reconciliation'!$A$5:$A$33='BAS SUMMARY _MONTHLY'!B5)*('GST Reconciliation'!$D$2*'BAS SUMMARY _MONTHLY'!$C$2)*('GST Reconciliation'!E3='BAS SUMMARY _MONTHLY'!D3)))
C6:C11C6=SUM(FILTER('GST Reconciliation'!$D$5:$F$33,('GST Reconciliation'!$A$5:$A$33='BAS SUMMARY _MONTHLY'!A6)))
C12:E12C12=SUM(C5:C11)
Cells with Data Validation
CellAllowCriteria
C1:D1List='All Transaction'!$F:$F

V17 BAS Review 05 December 2024.xlsm
ABCDEFHIJKLMNOPQRSTU
1PeriodJUL24SEP24PeriodJUL24SEP24PeriodJUL24SEP24
2Costing Work ID10MonthlyCosting Work ID21QuarterlyCosting Work ID30Quaterly
3CODESTransaction TypeEx GSTGST AmountGST InclusiveCODESTransaction TypeEx GSTGST AmountGST InclusiveCODESTransaction TypeEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0GST Codes - PurchaseBAS Codes$ 0$ 0$ 0GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A0Not Required For BASAP INV$ 2,060,521$ 10,877$ 2,071,398A0Not Required For BASAP INV$ 7,261$ 0$ 7,261A0Not Required For BASAP INV$ 22,069$ 0$ 22,069
6A0Not Required For BASDR DBT$ 0$ 0$ 0A0Not Required For BASDR DBT$ 0$ 0$ 0A0Not Required For BASDR DBT$ 0$ 0$ 0
7A0Not Required For BASAP CRD($ (1,623,255))$ 0($ (1,623,255))A0Not Required For BASAP CRD$ 0$ 0$ 0A0Not Required For BASAP CRD($ (1,950))$ 0($ (1,950))
8A0Not Required For BASAP PPI$ 29,432$ 0$ 29,432A0Not Required For BASAP PPI$ 0$ 0$ 0A0Not Required For BASAP PPI$ 0$ 0$ 0
9A0Not Required For BASAP PPC($ (11,550))$ 0($ (11,550))A0Not Required For BASAP PPC$ 0$ 0$ 0A0Not Required For BASAP PPC$ 0$ 0$ 0
10A1G11AP INV$ 25,029,828$ 2,502,983$ 27,532,811A1G11AP INV$ 2,523,349$ 252,335$ 2,775,685A1G11AP INV$ 6,015,938$ 601,594$ 6,617,531
11A1G11AP CRD($ (173,748))($ (17,375))($ (191,123))A1G11AP CRD($ (1,389))($ (139))($ (1,528))A1G11AP CRD($ (24,656))($ (2,466))($ (27,122))
12A1G11DR DBT$ 0$ 0$ 0A1G11DR DBT$ 0$ 0$ 0A1G11DR DBT$ 0$ 0$ 0
13A1G11AR ADJ$ 0$ 0$ 0A1G11AR ADJ$ 0$ 0$ 0A1G11AR ADJ$ 0$ 0$ 0
14A1G11AP PPC$ 1,268$ 127$ 1,394A1G11AP PPC$ 0$ 0$ 0A1G11AP PPC$ 0$ 0$ 0
15A1G11AP PPI$ 552$ 55$ 607A1G11AP PPI$ 0$ 0$ 0A1G11AP PPI$ 0$ 0$ 0
16A2G14AP PPI$ 234$ 0$ 234A2G14AP PPI$ 0$ 0$ 0A2G14AP PPI$ 54,783$ 0$ 54,783
17A2G14AP INV$ 248,035$ 0$ 248,035A2G14AP INV$ 17,603$ 0$ 17,603A2G14AP INV$ 20,642$ 0$ 20,642
18A2G14AP CRD($ (50,914))$ 0($ (50,914))A2G14AP CRD($ (719))$ 0($ (719))A2G14AP CRD($ (38,144))$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596$ 2,879,861Total$ 6,056,256$ 599,128$ 6,655,384
GST Reconciliation
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)
Cells with Data Validation
CellAllowCriteria
D1:E1List='All Transaction'!$F:$F
L1:M1List='All Transaction'!$F:$F
S1:T1List='All Transaction'!$F:$F
 
Upvote 0
V17 BAS Review 05 December 2024.xlsm
ABCDE
1PeriodJUL24AUG24
2Costing Work ID10Monthly
3CODESEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A1G11$54,687,380.98#CALC!#CALC!
6A2G14$394,710.64$0.00$0.00
7A4G15$8,545.92$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$55,090,637.54#CALC!#CALC!
BAS SUMMARY _MONTHLY
Cell Formulas
RangeFormula
C5:E5D5=SUM(FILTER('GST Reconciliation'!$D$5:$F$33,('GST Reconciliation'!$A$5:$A$33='BAS SUMMARY _MONTHLY'!B5)*('GST Reconciliation'!$D$2*'BAS SUMMARY _MONTHLY'!$C$2)*('GST Reconciliation'!E3='BAS SUMMARY _MONTHLY'!D3)))
C6:C11C6=SUM(FILTER('GST Reconciliation'!$D$5:$F$33,('GST Reconciliation'!$A$5:$A$33='BAS SUMMARY _MONTHLY'!A6)))
C12:E12C12=SUM(C5:C11)
Cells with Data Validation
CellAllowCriteria
C1:D1List='All Transaction'!$F:$F

V17 BAS Review 05 December 2024.xlsm
ABCDEFHIJKLMNOPQRSTU
1PeriodJUL24SEP24PeriodJUL24SEP24PeriodJUL24SEP24
2Costing Work ID10MonthlyCosting Work ID21QuarterlyCosting Work ID30Quaterly
3CODESTransaction TypeEx GSTGST AmountGST InclusiveCODESTransaction TypeEx GSTGST AmountGST InclusiveCODESTransaction TypeEx GSTGST AmountGST Inclusive
4GST Codes - PurchaseBAS Codes$ 0$ 0$ 0GST Codes - PurchaseBAS Codes$ 0$ 0$ 0GST Codes - PurchaseBAS Codes$ 0$ 0$ 0
5A0Not Required For BASAP INV$ 2,060,521$ 10,877$ 2,071,398A0Not Required For BASAP INV$ 7,261$ 0$ 7,261A0Not Required For BASAP INV$ 22,069$ 0$ 22,069
6A0Not Required For BASDR DBT$ 0$ 0$ 0A0Not Required For BASDR DBT$ 0$ 0$ 0A0Not Required For BASDR DBT$ 0$ 0$ 0
7A0Not Required For BASAP CRD($ (1,623,255))$ 0($ (1,623,255))A0Not Required For BASAP CRD$ 0$ 0$ 0A0Not Required For BASAP CRD($ (1,950))$ 0($ (1,950))
8A0Not Required For BASAP PPI$ 29,432$ 0$ 29,432A0Not Required For BASAP PPI$ 0$ 0$ 0A0Not Required For BASAP PPI$ 0$ 0$ 0
9A0Not Required For BASAP PPC($ (11,550))$ 0($ (11,550))A0Not Required For BASAP PPC$ 0$ 0$ 0A0Not Required For BASAP PPC$ 0$ 0$ 0
10A1G11AP INV$ 25,029,828$ 2,502,983$ 27,532,811A1G11AP INV$ 2,523,349$ 252,335$ 2,775,685A1G11AP INV$ 6,015,938$ 601,594$ 6,617,531
11A1G11AP CRD($ (173,748))($ (17,375))($ (191,123))A1G11AP CRD($ (1,389))($ (139))($ (1,528))A1G11AP CRD($ (24,656))($ (2,466))($ (27,122))
12A1G11DR DBT$ 0$ 0$ 0A1G11DR DBT$ 0$ 0$ 0A1G11DR DBT$ 0$ 0$ 0
13A1G11AR ADJ$ 0$ 0$ 0A1G11AR ADJ$ 0$ 0$ 0A1G11AR ADJ$ 0$ 0$ 0
14A1G11AP PPC$ 1,268$ 127$ 1,394A1G11AP PPC$ 0$ 0$ 0A1G11AP PPC$ 0$ 0$ 0
15A1G11AP PPI$ 552$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RD($ (0))$ 0$ 0S1G2AR CRD$ 0$ 0$ 0
31S1G2AR CSH$ 0$ 0$ 0S1G2AR CSH$ 0$ 0$ 0S1G2AR CSH$ 0$ 0$ 0
32S1G2G JNL$ 0$ 0$ 0S1G2G JNL$ 0$ 0$ 0S1G2G JNL$ 0$ 0$ 0
33S2AR INV$ 0$ 0$ 0S2AR INV$ 0$ 0$ 0S2AR INV$ 0$ 0$ 0
34Total$ 25,514,677$ 2,496,667$ 28,011,344Total$ 2,620,264$ 259,596$ 2,879,861Total$ 6,056,256$ 599,128$ 6,655,384
GST Reconciliation
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)
Cells with Data Validation
CellAllowCriteria
D1:E1List='All Transaction'!$F:$F
L1:M1List='All Transaction'!$F:$F
S1:T1List='All Transaction'!$F:$F
 
Upvote 0
Try:
Excel Formula:
=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))))
 
Upvote 0

Forum statistics

Threads
1,224,748
Messages
6,180,721
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