ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if between two dates (https://www.excelbanter.com/excel-worksheet-functions/138787-if-between-two-dates.html)

ADK

if between two dates
 
B1= 1/1/2007
B2 = 10/3/2007
A3 = 1/12/2007

B3 = X

(X being the letter X ...so "X" in formula)

B3 exquals X if A3 is between or on B1 & B3 otherwise cell equals ""

Examples:

If A3 is 1/1/2007 then B3 = X
If A3 is 4/3/2007 then B3 = X
If A3 is 10/3/2007 then B3 = X
If A3 is 10/4/2007 then B3 = ""
If A3 is 12/22/2007 then B3 = ""

Thanks for help

ADK



William Horton

if between two dates
 
=IF(AND(A3=B1,A3<=B2),"x","")

Enter the above formula in cell B3. That should work.

Bill

"ADK" wrote:

B1= 1/1/2007
B2 = 10/3/2007
A3 = 1/12/2007

B3 = X

(X being the letter X ...so "X" in formula)

B3 exquals X if A3 is between or on B1 & B3 otherwise cell equals ""

Examples:

If A3 is 1/1/2007 then B3 = X
If A3 is 4/3/2007 then B3 = X
If A3 is 10/3/2007 then B3 = X
If A3 is 10/4/2007 then B3 = ""
If A3 is 12/22/2007 then B3 = ""

Thanks for help

ADK




Bob Phillips

if between two dates
 
=IF(AND(A3=B1,A3<=B2),"X","")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"ADK" wrote in message
...
B1= 1/1/2007
B2 = 10/3/2007
A3 = 1/12/2007

B3 = X

(X being the letter X ...so "X" in formula)

B3 exquals X if A3 is between or on B1 & B3 otherwise cell equals ""

Examples:

If A3 is 1/1/2007 then B3 = X
If A3 is 4/3/2007 then B3 = X
If A3 is 10/3/2007 then B3 = X
If A3 is 10/4/2007 then B3 = ""
If A3 is 12/22/2007 then B3 = ""

Thanks for help

ADK




David Biddulph[_2_]

if between two dates
 
=IF(AND(A3=B1,A3<=B2),"X","")
--
David Biddulph

"ADK" wrote in message
...
B1= 1/1/2007
B2 = 10/3/2007
A3 = 1/12/2007

B3 = X

(X being the letter X ...so "X" in formula)

B3 exquals X if A3 is between or on B1 & B3 otherwise cell equals ""

Examples:

If A3 is 1/1/2007 then B3 = X
If A3 is 4/3/2007 then B3 = X
If A3 is 10/3/2007 then B3 = X
If A3 is 10/4/2007 then B3 = ""
If A3 is 12/22/2007 then B3 = ""

Thanks for help

ADK




Mike

if between two dates
 
Try this
=IF(AND(A3=B1,A3<=B2),"X","")

Mike


"ADK" wrote:

B1= 1/1/2007
B2 = 10/3/2007
A3 = 1/12/2007

B3 = X

(X being the letter X ...so "X" in formula)

B3 exquals X if A3 is between or on B1 & B3 otherwise cell equals ""

Examples:

If A3 is 1/1/2007 then B3 = X
If A3 is 4/3/2007 then B3 = X
If A3 is 10/3/2007 then B3 = X
If A3 is 10/4/2007 then B3 = ""
If A3 is 12/22/2007 then B3 = ""

Thanks for help

ADK




AdmiralAJ

if between two dates
 
On Apr 12, 12:09 pm, "ADK" wrote:
B1= 1/1/2007
B2 = 10/3/2007
A3 = 1/12/2007

B3 = X

(X being the letter X ...so "X" in formula)

B3 exquals X if A3 is between or on B1 & B3 otherwise cell equals ""

Examples:

If A3 is 1/1/2007 then B3 = X
If A3 is 4/3/2007 then B3 = X
If A3 is 10/3/2007 then B3 = X
If A3 is 10/4/2007 then B3 = ""
If A3 is 12/22/2007 then B3 = ""

Thanks for help

ADK


ADK,

Here's one way to approach your problem and its fairly simple:
in B3 you type this formula
=if(and(a3=b1,a3<=b2),"X","")

Regards...AJ



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

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