Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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)),"F all",IF(AND(A1=DATE (2009,1,16),A1<=DATE(2009,5,31)),"spring",IF(AND(A 1=DATE (2009,6,1),A1<=DATE(2009,8,31)),"summer",""))) On Jan 29, 1:17*am, Cazumel wrote: 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? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If the Account Start Date is in Cell A2:
=IF(AND(A2DATEVALUE("09/01/2008"),A2<=DATEVALUE("01/15/2009")),"Fall",IF(AND(A2DATEVALUE("01/15/2009"),A2<=DATEVALUE("05/31/2009")),"Spring",IF(AND(A2DATEVALUE("05/31/2008"),A2<=DATEVALUE("08/31/2009")),"Summer","Unknown"))) -- Hope this helps. Thanks in advance for your feedback. Gary Brown "Cazumel" wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|