Get the nearest future date from 3 columns

QuietRiot

Well-known Member
Joined
May 18, 2007
Messages
1,077
What would be the best way of going about getting the nearest future date from 3 dates using todays date?

A---------- b----------c-----------answer
3/29/2016 3/29/2017 3/30/2018 3/30/2018
2/15/2019 2/15/2020 2/15/2021 2/15/2019
6/25/2016 5/25/2017 5/25/2018 5/25/2018
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

MARZIOTULLIO

Well-known Member
Joined
Aug 22, 2015
Messages
767
a
b
c
d
e
1
3/29/2016​
3/29/2017​
3/30/2018​
3/30/2018​
2
2/15/2019​
2/15/2020​
2/15/2021​
2/15/2019​
3
6/25/2016​
5/25/2017​
5/25/2018​
5/25/2018​

<tbody>
</tbody>

e1=INDEX(A1:C1,MATCH(MIN(ABS(TODAY()-A1:C1)),ABS(TODAY()-A1:C1),0)) control+shift+enter copy down

format column E as date
 
Last edited:

QuietRiot

Well-known Member
Joined
May 18, 2007
Messages
1,077
e1=INDEX(A1:C1,MATCH(MIN(ABS(TODAY()-A1:C1)),ABS(TODAY()-A1:C1),0)) control+shift+enter copy down

format column E as date

very close, but I need the future date and not any past. Example where it messed up:

a
b
c
d
e
1
12/3/2016​
11/9/2017​
12/3/2018​
11/9/2017​

<tbody>
</tbody>
 

Forum statistics

Threads
1,136,339
Messages
5,675,199
Members
419,553
Latest member
hanahass

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
Top