#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Formula

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default Formula

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 209
Default Formula

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
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



All times are GMT +1. The time now is 10:11 PM.

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

About Us

"It's about Microsoft Excel"