#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default If statement

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default If statement

Use
=IF(AND(D8DATE(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)

"ajr81" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
If statement or lookup statement not sure Renegade40 Excel Worksheet Functions 2 January 18th 09 06:11 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 02:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"