retrieve nearest date

rodrigje

New Member
Joined
Nov 2, 2005
Messages
9
Hi all,

Im doing a concatenate where a statement will read..."Cumulative From 5/01/05 to ________" where the _____ is a date chosen from a column where I need it to pick the nearest date to today from that range. Thanks alot for looking at this :rolleyes:
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi

How you determine the "nearest"? Is it the one with the least number of days difference between the 2 dates (so could be either before or after the date), or the latest date before today.


Tony
 
Upvote 0
Assuming you want the latest date from the range A1:A100 (which, as Tony implies, is not necessarily the same as the date nearest to today)

="Cumulative From 5/01/05 to "&TEXT(MAX(A1:A100),"d/mm/yy")
 
Upvote 0
Barryhoudini and acw you both are great! that's EXACTLY what I needed and I just impressed the heck out of the boss! Thank you!!
 
Upvote 0

Forum statistics

Threads
1,202,990
Messages
6,052,947
Members
444,620
Latest member
marialewis16

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