Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the date?

Does anyone have any suggestions on how to determine the date?
There is a list of dates under column A
11-Aug-07
1-Sep-07
15-Oct-07
20-Dec-07

I would like to determine which date is the closest to today(), but larger
than today(). 1-Sep-07 should be returned in cell B1
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to determine the date?

One way...

Try this array formula** :

=MIN(IF(A1:A4TODAY(),A1:A4))

Format the cell as DATE. Note that if no dates meet the condition the
formula will return a 0 and a DATE formatted 0 will look like: 0-Jan-00. If
this might be a possibility and you don't want the 0 to appear in a DATE
format then use a custom format like this: d-mmm-yy;;0

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
Does anyone have any suggestions on how to determine the date?
There is a list of dates under column A
11-Aug-07
1-Sep-07
15-Oct-07
20-Dec-07

I would like to determine which date is the closest to today(), but larger
than today(). 1-Sep-07 should be returned in cell B1
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric



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
How to determine the date? Eric Excel Discussion (Misc queries) 2 May 16th 07 11:49 AM
Determine day of the week from date dan Excel Discussion (Misc queries) 4 January 31st 07 09:22 PM
Determine which column to use by date Mike Griffin Excel Worksheet Functions 5 March 2nd 06 01:18 PM
Function determine if date is even or odd jlewis Excel Worksheet Functions 2 November 17th 05 02:22 AM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 11:09 PM.

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"