Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve
 
Posts: n/a
Default Comparing 3 dates

Hi
I need a function that will determine whether a date falls between two other
dates. If the date does fall within the time band, the function will return a
"yes", if it doesn't it will return a "no"

Thanks

Steve

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default Comparing 3 dates

Hi Steve,

If the earliest date is in A1, the latest date in C1 and the test date is in
B1, and all dates are stored as values, you could use something like:
=IF(AND(B1A1,B1<C1),"Yes","No")
This tests whether B1 is *between* A1 and C1.

If you want to include A1 and C1 as valid dates, use something like:
=IF(OR(B1<A1,B1C1),"No","Yes")

Cheers

"Steve" wrote in message
...
Hi
I need a function that will determine whether a date falls between two

other
dates. If the date does fall within the time band, the function will

return a
"yes", if it doesn't it will return a "no"

Thanks

Steve



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
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Comparing dates Debbie F Excel Worksheet Functions 7 September 7th 05 11:57 AM
return array result in cell based on comparing dates Ruthki Excel Worksheet Functions 7 June 30th 05 11:41 PM
Comparing Dates using Greater Than and Less than waipio2 Excel Discussion (Misc queries) 1 June 7th 05 09:48 PM
Comparing dates in an IF function Paula Excel Worksheet Functions 3 January 12th 05 02:21 PM


All times are GMT +1. The time now is 05:16 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"