View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AdmiralAJ AdmiralAJ is offline
external usenet poster
 
Posts: 18
Default 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