ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to find if a date falls between 2 dates (https://www.excelbanter.com/excel-worksheet-functions/61073-how-find-if-date-falls-between-2-dates.html)

JHL

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?

Chip Pearson

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?




bpeltzer

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?


JE McGimpsey

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?


Bob Phillips

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?





All times are GMT +1. The time now is 11:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com