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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
a
[/TD]
[TD]
b
[/TD]
[TD]
c
[/TD]
[TD]
d
[/TD]
[TD]
e
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]
3/29/2016​
[/TD]
[TD]
3/29/2017​
[/TD]
[TD]
3/30/2018​
[/TD]
[TD][/TD]
[TD]
3/30/2018​
[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]
2/15/2019​
[/TD]
[TD]
2/15/2020​
[/TD]
[TD]
2/15/2021​
[/TD]
[TD][/TD]
[TD]
2/15/2019​
[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]
6/25/2016​
[/TD]
[TD]
5/25/2017​
[/TD]
[TD]
5/25/2018​
[/TD]
[TD][/TD]
[TD]
5/25/2018​
[/TD]
[/TR]
</tbody>[/TABLE]

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:

[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
a
[/TD]
[TD]
b
[/TD]
[TD]
c
[/TD]
[TD]
d
[/TD]
[TD]
e
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]
12/3/2016​
[/TD]
[TD]
11/9/2017​
[/TD]
[TD]
12/3/2018​
[/TD]
[TD][/TD]
[TD]
11/9/2017​
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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