#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Between two dates

I have three dates on the spreadsheet and I need to know if the third date is
within the parameters of the first two...

Column J = 03/21/07 (start date)
column K = 05/15/07 (end date)
column T = 03/06/07 (date to be checked)

I need a forumla that will tell me if the third date is within the first
two. Please help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Between two dates

Try this:

=IF(AND(T1=J1,T1<=K1),"within","outside")&" range"

This assumes the range includes the start and end dates, but if the
range is exclusive of these dates then you can use:

=IF(AND(T1J1,T1<K1),"within","outside")&" range"

Hope this helps.

Pete

On Dec 10, 2:47*pm, jen-chi wrote:
I have three dates on the spreadsheet and I need to know if the third date is
within the parameters of the first two... *

Column J = 03/21/07 (start date)
column K = 05/15/07 (end date)
column T = 03/06/07 (date to be checked)

I need a forumla that will tell me if the third date is within the first
two. * *Please help


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Between two dates

This will return TRUE or FALSE
=(AND(T1J1,T1<K1)

This will return whatever text you want
=IF(AND(T1J1,T1<K1),"OK,"Bad")

I have taken 'between' literally. So if T-date is exactly the same as
J-date you get false
You may wish to use
=(AND(T1=J1,T1<=K1)
to include the two critical dates
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"jen-chi" wrote in message
...
I have three dates on the spreadsheet and I need to know if the third date
is
within the parameters of the first two...

Column J = 03/21/07 (start date)
column K = 05/15/07 (end date)
column T = 03/06/07 (date to be checked)

I need a forumla that will tell me if the third date is within the first
two. Please help



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Between two dates

This returns True if between dates,
False if not:

=AND(T1=J1,T1<=K1)

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"jen-chi" wrote in message
...
I have three dates on the spreadsheet and I need to know if the third date
is
within the parameters of the first two...

Column J = 03/21/07 (start date)
column K = 05/15/07 (end date)
column T = 03/06/07 (date to be checked)

I need a forumla that will tell me if the third date is within the first
two. Please help


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
Stop dates from showing as numbers - when formated as dates JR Excel Discussion (Misc queries) 1 October 29th 08 04:38 PM
compare 2 tables of dates to find the preceding dates Babi Excel Worksheet Functions 3 October 28th 08 05:52 AM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


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