Formula

C

Cazumel

I have the following situation:

Fall semester:
This year, if the account start date (Acctstrt) is equal to or greater than
09/01/2008 and the account stop date (Acctstop) is less than or equal to
01/15/2009 this is considered fall

For the spring we should consider anything with an Acctstrt date greater
than or equal to 1/15/2009 and an Acctstop date of 5/31/09.

Summer semester:
There may be some summer appointments in the system already (probably only
for the sciences and psychology), if there are the Acctstrt date should be
06/01/2009 and the Acctstop date should be 8/31/2009.

How do I build a formula to recognize this?
 
M

muddan madhu

try this

Assumed you have date in Cell A1, In cell B1 put this formula
=IF(AND(A1>=DATE(2008,9,1),A1<=DATE(2009,1,15)),"Fall",IF(AND(A1>=DATE
(2009,1,16),A1<=DATE(2009,5,31)),"spring",IF(AND(A1>=DATE
(2009,6,1),A1<=DATE(2009,8,31)),"summer","")))
 
G

Gary Brown

If the Account Start Date is in Cell A2
=IF(AND(A2>DATEVALUE("09/01/2008"),A2<=DATEVALUE("01/15/2009")),"Fall",IF(AND(A2>DATEVALUE("01/15/2009"),A2<=DATEVALUE("05/31/2009")),"Spring",IF(AND(A2>DATEVALUE("05/31/2008"),A2<=DATEVALUE("08/31/2009")),"Summer","Unknown")))
 

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