Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JHL
 
Posts: n/a
Default How to find if a date falls between 2 dates

I've tried =if(and(cell= "1-1-2005",cell<"2/01/2005"),"yes", "no") and the
result is not right. Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default How to find if a date falls between 2 dates

Try

=IF(AND(A1=DATE(2005,1,1),A1<DATE(2005,2,1)),"yes ","no")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"JHL" wrote in message
...
I've tried =if(and(cell= "1-1-2005",cell<"2/01/2005"),"yes",
"no") and the
result is not right. Any thoughts?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default How to find if a date falls between 2 dates

Embed the Date function to convert from dates people understand to what Excel
uses: =if(and(cell=date(2005,1,1),cell<date(2005,2,1)), "yes","no")
--Bruce

"JHL" wrote:

I've tried =if(and(cell= "1-1-2005",cell<"2/01/2005"),"yes", "no") and the
result is not right. Any thoughts?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default How to find if a date falls between 2 dates

One way:

=IF(AND(cell=DATE(2005,1,1),cell<DATE(2005,2,1)), "yes","no")

In article ,
JHL wrote:

I've tried =if(and(cell= "1-1-2005",cell<"2/01/2005"),"yes", "no") and the
result is not right. Any thoughts?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How to find if a date falls between 2 dates

=AND((A1=--"2005-01-01")),(A1<--"2005-02-01)"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"JHL" wrote in message
...
I've tried =if(and(cell= "1-1-2005",cell<"2/01/2005"),"yes", "no") and

the
result is not right. Any thoughts?





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
Find dates to calculate amount of work per day? Possible? TKGerdie Excel Discussion (Misc queries) 7 November 1st 05 08:12 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
HOW TO FIND DIFF. BETW. 2 DATES, IT SHOULD BE IN YRS, MONTH & DAY Mushtaq Ahmed .T Excel Worksheet Functions 3 August 25th 05 10:05 AM
formula to find and flag dates older than 30 days Will G. Excel Worksheet Functions 1 June 18th 05 12:13 AM
Finding Dates in a date range Marcus Excel Discussion (Misc queries) 1 April 5th 05 01:51 AM


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