Help with an aging table which uses more than just age as criteria. Need a wildcard text solution too.

alsacdb

New Member
Joined
May 31, 2016
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Working with some accounting transaction data and an aging table.

I have to make some changes in how the age is calculated and how the buckets are determined.
Specifically, I need help with the following:
1. A new aging formula that subtracts the AGEDATE from the oldest transaction date for that pro, where AGEDATE is a named range for current period's week-ending date and pros, column G, are the orders in my record data. Since the data is transaction-based there may be one or many duplicated pros in the data. - I think I got this on my last attempt.
2. For the aging buckets, I need a formula for CURRENT in column N, that will return the PPD or prepaid value, column H, for that row if its age is 30 days or less OR the action status, column J, contains the text C&D. This phrase needs to be encased in asterisks acting as wildcards.
3. I need to adjust the other age bucket formulas (columns O through T) so they will not pick up the PPD or prepaid amount for any pro that has an action status containing the text C&D regardless of its age.
I have done this in the past using a pivot table to calculate the oldest transaction date by pro and then a helper column added to the table which looked up that date. I need a formula solution for this version though. Greatly appreciate any help.

I run 365 Enterprise with Apps for Windows.

Thanks so much

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Txn DateJrnl No.Orig. Audit TrailDistribution ReferenceOrig. Master #Orig. Master NameProPPDAction CommentsAction StatusLast ReviewedDIVAgingCurrent31-6061-9091-120121-150151-180Over 180TotalDiffAGEDATE5/13/2023
23/24/20234124906PMTRX00021243NULLNULLNULL95-206317450.00NULLC&D-Requested 04/284/3/20239550450.000.000.000.000.000.00450.000.00
33/24/20234124906PMTRX00021243NULLNULLNULL95-206317(250.00)NULLDEFER4/3/20239550(250.00)0.000.000.000.000.00(250.00)0.00
43/24/20234124907PMTRX00021243NULLNULLNULL95-2178193,250.00NULLDEFER4/3/202395503,250.000.000.000.000.000.003,250.000.00
53/24/20234124907PMTRX00021243NULLNULLNULL95-217819(3,050.00)NULLDEFER4/3/20239550(3,050.00)0.000.000.000.000.00(3,050.00)0.00
64/20/20234249048CMTRX00001418NULLNULLNULL95-240951(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
74/20/20234249048CMTRX00001418NULLNULLNULL95-240952(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
84/20/20234249048CMTRX00001418NULLNULLNULL95-240953(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
94/20/20234249048CMTRX00001418NULLNULLNULL95-240954(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
104/20/20234249048CMTRX00001418NULLNULLNULL95-240955(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
114/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
124/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
134/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
144/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
154/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
164/20/20234249048CMTRX00001418NULLNULLNULL95-243439(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
174/20/20234249048CMTRX00001418NULLNULLNULL95-243439(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
184/20/20234249048CMTRX00001418NULLNULLNULL95-243439(1,677.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,677.00
194/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
204/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
214/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
224/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
234/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
244/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
254/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
264/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,677.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,677.00
274/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,677.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,677.00
282/22/20221874399PMTRX00015318NULLNULLNULL95-247706150.00NULLDEFER1/10/2023954450.000.000.000.000.00150.00150.000.00
294/20/20234249048CMTRX00001418NULLNULLNULL95-250576(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
304/20/20234249048CMTRX00001418NULLNULLNULL95-250576(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
314/20/20234249048CMTRX00001418NULLNULLNULL95-250577(297.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00297.00
321/21/20233656483GLTRX00060402NULLNULLNULL96-275310100.00NULLDEFER11/17/2022961120.000.00100.000.000.000.00100.000.00
3310/30/20223309556PMTRX00019420NULLNULLNULL96-275335735.00NULLDEFER11/17/2022961950.000.000.000.000.00735.00735.000.00
3410/30/20223309556PMTRX00019420NULLNULLNULL96-275335245.00NULLDEFER4/28/2023961950.000.000.000.000.00245.00245.000.00
3510/30/20223309556PMTRX00019420NULLNULLNULL96-275335200.00NULLDEFER4/28/2023961950.000.000.000.000.00200.00200.000.00
3610/29/20223266581PMTRX00019205NULLNULLNULL96-275409165.00NULLDEFER4/28/2023961960.000.000.000.000.00165.00165.000.00
3710/26/20223262960PMTRX00019197NULLNULLNULL96-275415637.42NULLDEFER11/17/2022961990.000.000.000.000.00637.42637.420.00
3810/29/20223266581PMTRX00019205NULLNULLNULL96-275415375.31NULLDEFER1/26/2023961990.000.000.000.000.00375.31375.310.00
3910/27/20223266589PMTRX00019206NULLNULLNULL96-275415267.48NULLDEFER1/26/2023961990.000.000.000.000.00267.48267.480.00
401/28/20233842933GLTRX00061403NULLNULLNULL96-275533100.00NULLDEFER1/17/2023961050.000.00100.000.000.000.00100.000.00
4111/23/20223392060PMTRX00019706NULLNULLNULL96-275640990.00NULLC&D3/21/2023961710.000.000.000.00990.000.00990.000.00
4211/24/20223421806PMTRX00019776NULLNULLNULL96-275640330.00NULLC&D4/28/2023961710.000.000.000.00330.000.00330.000.00
434/25/20234261146GLTRX00066979NULLNULLNULL96-276241(150.00)NULLC&D-Not requested5/5/202396180.000.000.000.000.000.000.00150.00
4412/1/20223438378PMTRX00019844NULLNULLNULL96-277407400.00NULLDEFER3/21/2023961630.000.000.000.00400.000.00400.000.00
452/9/20221841818PMTRX00015237NULLNULLNULL98-138231500.00NULLDEFER3/9/2023984580.000.000.000.000.00500.00500.000.00
4612/21/20223537683GLTRX00057792NULLNULLNULL98-189766600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
4712/21/20223537683GLTRX00057792NULLNULLNULL98-189767600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
4812/21/20223537683GLTRX00057792NULLNULLNULL98-189769600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
4912/21/20223537683GLTRX00057792NULLNULLNULL98-189771600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
503/27/20234138688PMTRX00021274NULLNULLNULL98-194672600.00NULLDEFER4/7/20239847600.000.000.000.000.000.00600.000.00
513/27/20234138688PMTRX00021274NULLNULLNULL98-194675600.00NULLDEFER4/7/20239847600.000.000.000.000.000.00600.000.00
523/30/20234173208PMTRX00021305NULLNULLNULL98-194676200.00NULLDEFER4/7/20239844200.000.000.000.000.000.00200.000.00
533/27/20234138688PMTRX00021274NULLNULLNULL98-194677600.00NULLDEFER4/7/20239847600.000.000.000.000.000.00600.000.00
543/29/20234168658PMTRX00021302NULLNULLNULL98-1946811,200.00NULLDEFER4/7/202398451,200.000.000.000.000.000.001,200.000.00
553/30/20234173208PMTRX00021305NULLNULLNULL98-194681200.00NULLDEFER4/7/20239845200.000.000.000.000.000.00200.000.00
Sheet1
Cell Formulas
RangeFormula
L2:L55L2=LEFT(G2,2)*1
M2:M55M2=AGEDATE-MINIFS($A$3:INDEX($A:$A,COUNTA($A:$A)+1),$G$3:INDEX($G:$G,COUNTA($G:$G)+1),G2)
O2:S55O2=IF(AND($M2>=TEXTBEFORE(O$1,"-",1)*1,$M2<=TEXTAFTER(O$1,"-",1)*1),$H2,0)
T2:T55T2=IF($M2>TEXTAFTER(T$1," ",1)*1,$H2,0)
U2:U55U2=SUM(N2:T2)
V2:V55V2=+U2-$H2
Named Ranges
NameRefers ToCells
AGEDATE=Sheet1!$Y$1M2:M55
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Working with some accounting transaction data and an aging table.

I have to make some changes in how the age is calculated and how the buckets are determined.
Specifically, I need help with the following:
1. A new aging formula that subtracts the AGEDATE from the oldest transaction date for that pro, where AGEDATE is a named range for current period's week-ending date and pros, column G, are the orders in my record data. Since the data is transaction-based there may be one or many duplicated pros in the data. - I think I got this on my last attempt.
2. For the aging buckets, I need a formula for CURRENT in column N, that will return the PPD or prepaid value, column H, for that row if its age is 30 days or less OR the action status, column J, contains the text C&D. This phrase needs to be encased in asterisks acting as wildcards.
3. I need to adjust the other age bucket formulas (columns O through T) so they will not pick up the PPD or prepaid amount for any pro that has an action status containing the text C&D regardless of its age.
I have done this in the past using a pivot table to calculate the oldest transaction date by pro and then a helper column added to the table which looked up that date. I need a formula solution for this version though. Greatly appreciate any help.

I run 365 Enterprise with Apps for Windows.

Thanks so much

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Txn DateJrnl No.Orig. Audit TrailDistribution ReferenceOrig. Master #Orig. Master NameProPPDAction CommentsAction StatusLast ReviewedDIVAgingCurrent31-6061-9091-120121-150151-180Over 180TotalDiffAGEDATE5/13/2023
23/24/20234124906PMTRX00021243NULLNULLNULL95-206317450.00NULLC&D-Requested 04/284/3/20239550450.000.000.000.000.000.00450.000.00
33/24/20234124906PMTRX00021243NULLNULLNULL95-206317(250.00)NULLDEFER4/3/20239550(250.00)0.000.000.000.000.00(250.00)0.00
43/24/20234124907PMTRX00021243NULLNULLNULL95-2178193,250.00NULLDEFER4/3/202395503,250.000.000.000.000.000.003,250.000.00
53/24/20234124907PMTRX00021243NULLNULLNULL95-217819(3,050.00)NULLDEFER4/3/20239550(3,050.00)0.000.000.000.000.00(3,050.00)0.00
64/20/20234249048CMTRX00001418NULLNULLNULL95-240951(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
74/20/20234249048CMTRX00001418NULLNULLNULL95-240952(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
84/20/20234249048CMTRX00001418NULLNULLNULL95-240953(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
94/20/20234249048CMTRX00001418NULLNULLNULL95-240954(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
104/20/20234249048CMTRX00001418NULLNULLNULL95-240955(3,732.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.003,732.00
114/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
124/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
134/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
144/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
154/20/20234249048CMTRX00001418NULLNULLNULL95-243439(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
164/20/20234249048CMTRX00001418NULLNULLNULL95-243439(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
174/20/20234249048CMTRX00001418NULLNULLNULL95-243439(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
184/20/20234249048CMTRX00001418NULLNULLNULL95-243439(1,677.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,677.00
194/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
204/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
214/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
224/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
234/20/20234249048CMTRX00001418NULLNULLNULL95-245072(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
244/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
254/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
264/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,677.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,677.00
274/20/20234249048CMTRX00001418NULLNULLNULL95-245072(1,677.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,677.00
282/22/20221874399PMTRX00015318NULLNULLNULL95-247706150.00NULLDEFER1/10/2023954450.000.000.000.000.00150.00150.000.00
294/20/20234249048CMTRX00001418NULLNULLNULL95-250576(559.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00559.00
304/20/20234249048CMTRX00001418NULLNULLNULL95-250576(1,118.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.001,118.00
314/20/20234249048CMTRX00001418NULLNULLNULL95-250577(297.00)NULLC&D-Requested 04/284/28/202395230.000.000.000.000.000.000.00297.00
321/21/20233656483GLTRX00060402NULLNULLNULL96-275310100.00NULLDEFER11/17/2022961120.000.00100.000.000.000.00100.000.00
3310/30/20223309556PMTRX00019420NULLNULLNULL96-275335735.00NULLDEFER11/17/2022961950.000.000.000.000.00735.00735.000.00
3410/30/20223309556PMTRX00019420NULLNULLNULL96-275335245.00NULLDEFER4/28/2023961950.000.000.000.000.00245.00245.000.00
3510/30/20223309556PMTRX00019420NULLNULLNULL96-275335200.00NULLDEFER4/28/2023961950.000.000.000.000.00200.00200.000.00
3610/29/20223266581PMTRX00019205NULLNULLNULL96-275409165.00NULLDEFER4/28/2023961960.000.000.000.000.00165.00165.000.00
3710/26/20223262960PMTRX00019197NULLNULLNULL96-275415637.42NULLDEFER11/17/2022961990.000.000.000.000.00637.42637.420.00
3810/29/20223266581PMTRX00019205NULLNULLNULL96-275415375.31NULLDEFER1/26/2023961990.000.000.000.000.00375.31375.310.00
3910/27/20223266589PMTRX00019206NULLNULLNULL96-275415267.48NULLDEFER1/26/2023961990.000.000.000.000.00267.48267.480.00
401/28/20233842933GLTRX00061403NULLNULLNULL96-275533100.00NULLDEFER1/17/2023961050.000.00100.000.000.000.00100.000.00
4111/23/20223392060PMTRX00019706NULLNULLNULL96-275640990.00NULLC&D3/21/2023961710.000.000.000.00990.000.00990.000.00
4211/24/20223421806PMTRX00019776NULLNULLNULL96-275640330.00NULLC&D4/28/2023961710.000.000.000.00330.000.00330.000.00
434/25/20234261146GLTRX00066979NULLNULLNULL96-276241(150.00)NULLC&D-Not requested5/5/202396180.000.000.000.000.000.000.00150.00
4412/1/20223438378PMTRX00019844NULLNULLNULL96-277407400.00NULLDEFER3/21/2023961630.000.000.000.00400.000.00400.000.00
452/9/20221841818PMTRX00015237NULLNULLNULL98-138231500.00NULLDEFER3/9/2023984580.000.000.000.000.00500.00500.000.00
4612/21/20223537683GLTRX00057792NULLNULLNULL98-189766600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
4712/21/20223537683GLTRX00057792NULLNULLNULL98-189767600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
4812/21/20223537683GLTRX00057792NULLNULLNULL98-189769600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
4912/21/20223537683GLTRX00057792NULLNULLNULL98-189771600.00NULLDEFER3/14/2023981430.000.000.00600.000.000.00600.000.00
503/27/20234138688PMTRX00021274NULLNULLNULL98-194672600.00NULLDEFER4/7/20239847600.000.000.000.000.000.00600.000.00
513/27/20234138688PMTRX00021274NULLNULLNULL98-194675600.00NULLDEFER4/7/20239847600.000.000.000.000.000.00600.000.00
523/30/20234173208PMTRX00021305NULLNULLNULL98-194676200.00NULLDEFER4/7/20239844200.000.000.000.000.000.00200.000.00
533/27/20234138688PMTRX00021274NULLNULLNULL98-194677600.00NULLDEFER4/7/20239847600.000.000.000.000.000.00600.000.00
543/29/20234168658PMTRX00021302NULLNULLNULL98-1946811,200.00NULLDEFER4/7/202398451,200.000.000.000.000.000.001,200.000.00
553/30/20234173208PMTRX00021305NULLNULLNULL98-194681200.00NULLDEFER4/7/20239845200.000.000.000.000.000.00200.000.00
Sheet1
Cell Formulas
RangeFormula
L2:L55L2=LEFT(G2,2)*1
M2:M55M2=AGEDATE-MINIFS($A$3:INDEX($A:$A,COUNTA($A:$A)+1),$G$3:INDEX($G:$G,COUNTA($G:$G)+1),G2)
O2:S55O2=IF(AND($M2>=TEXTBEFORE(O$1,"-",1)*1,$M2<=TEXTAFTER(O$1,"-",1)*1),$H2,0)
T2:T55T2=IF($M2>TEXTAFTER(T$1," ",1)*1,$H2,0)
U2:U55U2=SUM(N2:T2)
V2:V55V2=+U2-$H2
Named Ranges
NameRefers ToCells
AGEDATE=Sheet1!$Y$1M2:M55
I have figured out the 2nd part. This formula worked for my current column updated criteria from Age less than 31 days to Age less than 31 days OR action status which includes string C&D:
=IF(OR(SUMPRODUCT(--ISNUMBER(SEARCH("C&D",$J3)))>0,M3<31),H3,0) where J is my act status column, M is the Age column and H is the prepaid value.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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