formulas/function

C

craig@help

Hi there!

Im wondering if you could help me out as im trying all kind of trick
to make what i want it to work, i have tried =if(or(a1>b1,a1<b2)
"x","y") function, (b1=01/01/2005, b2= 31/12/2005) it will work but i
no date has been input then it still show x

'm looking for fornulas/function that will help me with my work, se
below:
between 01/01/2005 and 31/12/2005 = "x"
between 01/01/2006 and 31/12/2006="Y"
if no date input then ignore it or leave it blank.

I would be grateful for your kind support.

Craig
:confused
 
G

Guest

=IF(ISBLANK(A1),"",IF((DATE(2005,1,1)<=A1)*(DATE(2005,12,31)>=A1),"X",IF((DATE(2006,1,1)<=A1)*(DATE(2006,12,31)>=A1),"Y","Out of Range")))

If your dates include times (example: 12/31/2005 4:30 PM), then you might
need this formula...

=IF(ISBLANK(A1),"",IF((DATE(2005,1,1)<=A1)*(DATE(2006,1,1)>A1),"X",IF((DATE(2006,1,1)<=A1)*(DATE(2007,1,1)>A1),"Y","Out of Range")))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top