Lookup and Down

ScottNeedsHelp

New Member
Joined
Apr 15, 2016
Messages
35
Good Morning,

Here is what I cannot figure out. I have a column of dates (Column A), then I have a much shorter column of dates (Column B). What I am trying to do is create a formula that looks at the date in Column A; but returns the closest date in Column B (however, cannot be a previous date - needs to be closest (next) date. Any help would be awesome...

Thanks,
S.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
If the dates in the B-range sorted in ascending order...

=INDEX($B$2:$B$400,MATCH($A2,$B$2:$B$400,1)+(LOOKUP($A2,$B$2:$B$400) < $A2)))

If not, control+shift+enter, not just enter:

=MIN(IF($B$2:$B$400>$A2,$B$2:$B$400))
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,332
Members
449,155
Latest member
ravioli44

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