Lookup Date Based on Reference Cell

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
349
Office Version
  1. 365
Platform
  1. Windows
Hi

Need a formula that displays a list of dates, based on a commencement value in another cell.

The list of data is in cells A2 to B20 (this table has dates added to it - it is expandable). The date that I want to lookup is in cell D2. I need the output to look like the values in cells A22 to A36. Every time the value in cell D2 is changed, the output list would change accordingly, with the commencement or lookup date (cell D2) appearing first in cell A22.

Thanks


Book1
ABCD
1DateCASH
214/11/2022$188,83618/11/2022
315/11/2022$188,851
416/11/2022$188,895
517/11/2022$188,909
618/11/2022$188,924
721/11/2022$188,938
822/11/2022$188,960
923/11/2022$189,004
1024/11/2022$189,019
1125/11/2022$189,034
1228/11/2022$189,048
1329/11/2022$189,063
1430/11/2022$189,114
151/12/2022$189,129
162/12/2022$189,143
175/12/2022$189,165
186/12/2022$189,180
197/12/2022$189,224
208/12/2022$189,245
21
2218/11/2022
2321/11/2022
2422/11/2022
2523/11/2022
2624/11/2022
2725/11/2022
2828/11/2022
2929/11/2022
3030/11/2022
311/12/2022
322/12/2022
335/12/2022
346/12/2022
357/12/2022
368/12/2022
Sheet5
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Like this?

22 12 15.xlsm
ABCD
1DateCASH
214/11/2022$188,83618/11/2022
315/11/2022$188,851
416/11/2022$188,895
517/11/2022$188,909
618/11/2022$188,924
721/11/2022$188,938
822/11/2022$188,960
923/11/2022$189,004
1024/11/2022$189,019
1125/11/2022$189,034
1228/11/2022$189,048
1329/11/2022$189,063
1430/11/2022$189,114
151/12/2022$189,129
162/12/2022$189,143
175/12/2022$189,165
186/12/2022$189,180
197/12/2022$189,224
208/12/2022$189,245
21
2218/11/2022
2321/11/2022
2422/11/2022
2523/11/2022
2624/11/2022
2725/11/2022
2828/11/2022
2929/11/2022
3030/11/2022
311/12/2022
322/12/2022
335/12/2022
346/12/2022
357/12/2022
368/12/2022
37
Dates
Cell Formulas
RangeFormula
A22:A36A22=FILTER(A2:A20,A2:A20>=D2)
Dynamic array formulas.
 
Upvote 0
The list of data is in cells A2 to B20 (this table has dates added to it - it is expandable).
I didn't really allow for that. It would, of course, mean that the output list would not always be able to start in A22. Perhaps something more like this. Make the original data into a formal table and relocate the output.

22 12 15.xlsm
ABCDEF
1DateCASH
214/11/2022$188,83618/11/202218/11/2022
315/11/2022$188,85121/11/2022
416/11/2022$188,89522/11/2022
517/11/2022$188,90923/11/2022
618/11/2022$188,92424/11/2022
721/11/2022$188,93825/11/2022
822/11/2022$188,96028/11/2022
923/11/2022$189,00429/11/2022
1024/11/2022$189,01930/11/2022
1125/11/2022$189,0341/12/2022
1228/11/2022$189,0482/12/2022
1329/11/2022$189,0635/12/2022
1430/11/2022$189,1146/12/2022
151/12/2022$189,1297/12/2022
162/12/2022$189,1438/12/2022
175/12/2022$189,165
186/12/2022$189,180
197/12/2022$189,224
208/12/2022$189,245
21
22
Dates
Cell Formulas
RangeFormula
F2:F16F2=FILTER(Table1[Date],Table1[Date]>=D2)
Dynamic array formulas.
 
Upvote 0
Solution
Thanks Peter.

I must be doing something wrong on my end. The output cells are giving #SPILL!.

I'll keep trying to find what I've done wrong.
 
Upvote 0
Hi Peter

Not sure what I was doing wrong but it is working fine now.

Appreciate your help. Thanks.
 
Upvote 0
Not sure what I was doing wrong ..
You were probably copying the formula down the column. It needs to go in the top cell only and the other results will (correctly) 'spill' down the column by themselves. :)
Anyway, glad you got it sorted.

Appreciate your help. Thanks.
You're welcome. Thanks for the follow-up. (y)
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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