Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default I assume that closest means either before or after (if not an exact match).

If you want the minimum date that is greater than today...

Array entered** :

=MIN(IF(A1:A10TODAY(),A1:A10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Format as Date

--
Biff
Microsoft Excel MVP


<Linda Racine wrote in message
...
How does the formula need to change if one only wants to return a date
after today?



T. Valko wrote:

I assume that closest means either before or after (if not an exact
match).
14-Jan-08

I assume that closest means either before or after (if not an exact
match).

Normally entered:

=INDEX(B1:BK1,MATCH(TRUE,INDEX(ABS(B1:BK1-TODAY())=MIN(INDEX(ABS(B1:BK1-TODAY()),1,)),1,),0))

Format as DATE

--
Biff
Microsoft Excel MVP


"jem264" wrote in message
...

Previous Posts In This Thread:

On Monday, January 14, 2008 11:41 AM
jem26 wrote:

Formula to find the date closest to today.
I have a list of dates in row 1, from B1:BK1. Most of them are Sundays,
but a
few are in the middle of the week. I need a formula that I can enter into
another sheet to find the date from this list that is closest to today().
I
found an array formula that will work, I hope to be able to do this
without
the array, I do not want to add any more data to the sheets, if possible.
Thanks in advance

On Monday, January 14, 2008 1:33 PM
T. Valko wrote:

I assume that closest means either before or after (if not an exact
match).
I assume that closest means either before or after (if not an exact
match).

Normally entered:

=INDEX(B1:BK1,MATCH(TRUE,INDEX(ABS(B1:BK1-TODAY())=MIN(INDEX(ABS(B1:BK1-TODAY()),1,)),1,),0))

Format as DATE

--
Biff
Microsoft Excel MVP


"jem264" wrote in message
...


Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Custom Validation Using the Enterprise Library
http://www.eggheadcafe.com/tutorials...ation-usi.aspx



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Find Closest Coordinate Match Bill Excel Discussion (Misc queries) 6 May 2nd 23 07:42 PM
Array Lookup to Find Closest Date and Next Closest Date [email protected] Excel Worksheet Functions 7 November 7th 07 03:04 AM
Find closest future date from list ... Ray Excel Discussion (Misc queries) 3 September 20th 07 07:43 PM
Find closest match and copy saman110 via OfficeKB.com Excel Discussion (Misc queries) 3 August 31st 07 06:30 AM
IF TODAY equals date in cell A10, or if TODAY is beyond that date SoupNazi Excel Worksheet Functions 4 April 23rd 07 01:14 AM


All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"