Get the nearest future date from 3 columns

QuietRiot

Well-known Member
Joined
May 18, 2007
Messages
1,079
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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:
Upvote 0
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>
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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