View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Mike is offline
external usenet poster
 
Posts: 3,101
Default 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