If statement

A

ajr81

I am trying to create an if statement with dates. Basically, in one cell the
user will enter either fiscal year 2007, 2008 or 2009. Then when they enter
a date range, I want the if statement to verify that the range does in fact
fall within the fiscal year they typed in. So basically:

If---cell C2=2009
Then---cell D8...this is where I get lost. How do you say you need cell D8
to fall within July 1, 2008 and June 30, 2009?
Otherwise---FALSE

Thank you very much for your help.
 
S

Sheeloo

Use
=IF(AND(D8>DATE(C2-1,7,1),D8<DATE(C2,6,30)),TRUE)

This will tell you whether D8 is within the FISCAL year (TRUE) or not (FALSE)
 

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