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 valid the date with given condition?

Does anyone have any suggestions on how to valid the date with given condition?
For example, there is a list of date under column A,
01-May-06
06-May-06
11-May-06
13-May-06
25-May-06
....
There is a given date in cell B1 [20-May-07] and a given number 6 in cell B2.

I would like to determine any date under column A within the range based on
the given date [20-May-07] + / - the given number 6 days, which is between
[14-May-06] and [26-May-06]. If none exists within this range, then return
FALSE in cell C1, else if any date or more exist within this range, then
return TRUE in cell C1.
Does anyone have any suggestions on how to do it?
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 valid the date with given condition?

Try this:

the given date [20-May-07] + / - the given number 6 days, which is between
[14-May-06] and [26-May-06].


I think your years are messed up!

=COUNTIF(A1:A5,"="&B1-B2)-COUNTIF(A1:A5,""&B1+B2)0

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
Does anyone have any suggestions on how to valid the date with given
condition?
For example, there is a list of date under column A,
01-May-06
06-May-06
11-May-06
13-May-06
25-May-06
...
There is a given date in cell B1 [20-May-07] and a given number 6 in cell
B2.

I would like to determine any date under column A within the range based
on
the given date [20-May-07] + / - the given number 6 days, which is between
[14-May-06] and [26-May-06]. If none exists within this range, then return
FALSE in cell C1, else if any date or more exist within this range, then
return TRUE in cell C1.
Does anyone have any suggestions on how to do it?
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
Importing data using a date as the condition elco Excel Discussion (Misc queries) 2 May 23rd 07 11:44 AM
count between two date with one more condition count between two date with one more con Excel Worksheet Functions 1 April 19th 07 04:22 AM
display date based on condition eesh New Users to Excel 1 February 26th 07 07:53 AM
How to check valid Date value? hstijnen Excel Worksheet Functions 1 August 14th 06 01:25 PM
Calculate a date or key a date on condition Tolo Excel Discussion (Misc queries) 2 June 13th 06 04:16 PM


All times are GMT +1. The time now is 01:48 AM.

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

About Us

"It's about Microsoft Excel"