Past dates Cell Reference

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
290
Office Version
  1. 365
Platform
  1. Windows
Past dates.xlsx
ABCDEFGH
1Helper:>>12-06-2024
2Dessired Output
3generaldd-mm-yyyynumericalPast Dates
4HolderDateAmountHolderCell Ref
5KM03-02-202415000KMF5
6KM11-06-202410000KMF6
7KM17-07-20245000VMF11
830000VMF12
9VBF19
10
11VM04-04-20248000
12VM19-05-20247000
13VM21-10-20245000
14VM23-10-202410000
15
1630000
17
18
19VB04-04-20241000
20VB17-06-202410000
21VB 21-07-202418000
22VB02-01-20255000
23
2434000
25
Sheet1
Cell Formulas
RangeFormula
C1C1=TODAY()
D8D8=SUM(D5:D7)
D16,D24D16=SUM(D11:D14)

Past date is derived based on C1.
There are blank rows in between holders.
Request formula for output in Columns F and G.
Thanking you sirs
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I am sorry I have made a mistake. In Column G, I have mentioned Cell references as F5,F6,F11,F12 and F19 by mistake. They should be D5,D6,D11,D12 and D19. Kindly pardon me for my lapses. Thanking you sirs,
 
Upvote 0
Try:

Book2
ABCDEFG
1Helper:>>6/12/2024
2Dessired Output
3generaldd-mm-yyyynumericalPast Dates
4HolderDateAmountHolderCell Ref
5KM2/3/202415000KMD5
6KM6/11/202410000KMD6
7KM7/17/20245000VMD11
830000VMD12
9VBD19
10
11VM4/4/20248000
12VM5/19/20247000
13VM10/21/20245000
14VM10/23/202410000
15
1630000
17
18
19VB4/4/20241000
20VB6/17/202410000
21VB 7/21/202418000
22VB1/2/20255000
23
2434000
Sheet4
Cell Formulas
RangeFormula
F5:G9F5=LET(holder,B5:B100,date,C5:C100,amt,D5:D100,t,CHOOSE({1,2},holder,ADDRESS(ROW(amt),COLUMN(amt),4)),FILTER(t,(date<C1)*(date<>"")))
D8D8=SUM(D5:D7)
D16,D24D16=SUM(D11:D14)
Dynamic array formulas.
 
Upvote 0
Solution
Another option.
Book1
ABCDEFG
1Helper:>>6/12/24
2Dessired Output
3generaldd-mm-yyyynumericalPast Dates
4HolderDateAmountHolderCell Ref
5KM2/3/2415000KMD5
6KM6/11/2410000KMD6
7KM7/17/245000VMD11
830000VMD12
9VBD19
10
11VM4/4/248000
12VM5/19/247000
13VM10/21/245000
14VM10/23/2410000
15
1630000
17
18
19VB4/4/241000
20VB6/17/2410000
21VB 7/21/2418000
22VB1/2/255000
23
2434000
Sheet4
Cell Formulas
RangeFormula
F5:G9F5=WRAPROWS(TOCOL(IFS((C5:C24<C1)*(B5:B24<>""),HSTACK(B5:B24,CHAR(COLUMN(D5:D24)+64)&ROW(D5:D24))),2),2)
D8D8=SUM(D5:D7)
D16,D24D16=SUM(D11:D14)
Dynamic array formulas.
 
Upvote 0
One more with FILTER.
Book1
ABCDEFG
1Helper:>>6/12/24
2Dessired Output
3generaldd-mm-yyyynumericalPast Dates
4HolderDateAmountHolderCell Ref
5KM2/3/2415000KMD5
6KM6/11/2410000KMD6
7KM7/17/245000VMD11
830000VMD12
9VBD19
10
11VM4/4/248000
12VM5/19/247000
13VM10/21/245000
14VM10/23/2410000
15
1630000
17
18
19VB4/4/241000
20VB6/17/2410000
21VB 7/21/2418000
22VB1/2/255000
23
2434000
Sheet4
Cell Formulas
RangeFormula
F5:G9F5=FILTER(HSTACK(B5:B24,CHAR(COLUMN(D5:D24)+64)&ROW(D5:D24)),(C5:C24<C1)*(B5:B24<>""))
D8D8=SUM(D5:D7)
D16,D24D16=SUM(D11:D14)
Dynamic array formulas.
 
Upvote 0
I want a little more help. I want the FILTER to give output only if D5:24 is not blank or not 0.
Kindly advise me amended formula. Thanking you
 
Upvote 0
You can try
Excel Formula:
=FILTER(HSTACK(B5:B24,CHAR(COLUMN(D5:D24)+64)&ROW(D5:D24)),(D5:D24>0)*(C5:C24<C1)*(B5:B24<>""))
 
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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