Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Need true or false if a date falls between a date range

Hi there,

Simply put, I'm looking for this

IF(CELL VALUE is between January 1, 2006 and January 31, 2006, True, False)

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default Need true or false if a date falls between a date range

one way:

=IF(AND(C1=DATE(2006,1,1),C1<=DATE(2006,1,31)), TRUE,FALSE)

Regards

Trevor


"Dustin" wrote in message
...
Hi there,

Simply put, I'm looking for this

IF(CELL VALUE is between January 1, 2006 and January 31, 2006, True,
False)

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Need true or false if a date falls between a date range

Just to point out that you don't really need the if statement and it will
work with just the logic ans you want a boolean answer:

=AND(C2=DATE(2006,1,1),C2<=DATE(2006,1,31))


--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"Trevor Shuttleworth" wrote:

one way:

=IF(AND(C1=DATE(2006,1,1),C1<=DATE(2006,1,31)), TRUE,FALSE)

Regards

Trevor


"Dustin" wrote in message
...
Hi there,

Simply put, I'm looking for this

IF(CELL VALUE is between January 1, 2006 and January 31, 2006, True,
False)

Any ideas?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Need true or false if a date falls between a date range

If your range is always a whole month you could also use

=TEXT(A1,"mmm yy")="Jan 06"

"Martin Fishlock" wrote:

Just to point out that you don't really need the if statement and it will
work with just the logic ans you want a boolean answer:

=AND(C2=DATE(2006,1,1),C2<=DATE(2006,1,31))


--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"Trevor Shuttleworth" wrote:

one way:

=IF(AND(C1=DATE(2006,1,1),C1<=DATE(2006,1,31)), TRUE,FALSE)

Regards

Trevor


"Dustin" wrote in message
...
Hi there,

Simply put, I'm looking for this

IF(CELL VALUE is between January 1, 2006 and January 31, 2006, True,
False)

Any ideas?




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 some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Stop renaming or moving sheet tabs sparx Excel Discussion (Misc queries) 9 May 16th 06 08:44 PM
Formula: If 2 values (in a range of six) are >3 then TRUE, FALSE IFfunction Excel Discussion (Misc queries) 2 October 10th 05 10:34 AM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM


All times are GMT +1. The time now is 08:25 PM.

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"