Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Sick time accumulation

Need help writing a complicated formula. Want formula to stay zero until the
criterias are met as explained below. When criterias are met, want formula
to automatically add a 1, 2 or 3 in the cell based on the hire date after 6
months of service.

After 6 months of service, you get one sick day; then three days maximum a
year (January - December). If first year anniversary falls on January -
June you get 3 sick. If it falls on July - Sept you get 2 sick for remainder
of year. If it falls on Oct - Dec you get 1 sick day for remainder of the
year. Sick days do not carry forward to the next year.

Examples

Hire Date: July 1, 2006
Six months of service date: Jan. 1, 2007
Sick leave accumlated after six months: 1
First Year Anniversary Date: July 1, 2007
Sick leave accumlated: 2 more for remainder of 2007

Hire Date: Jan. 1, 2006
Six months of service date: July 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Jan. 1, 2007
Sick leave accumlated: 3 for 2007

Hire Date: Oct. 1, 2006
Six months of service date: April 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Oct. 1, 2007
Sick leave accumlated: 1 for remainer of 2007
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Sick time accumulation

Hi

Try
=IF((yearstart-hiredate)182.5,1,0)+
IF(MONTH(hiredate)9,1,IF(MONTH(hiredate)6,2,3))

--
Regards

Roger Govier


"clueless" wrote in message
...
Need help writing a complicated formula. Want formula to stay zero
until the
criterias are met as explained below. When criterias are met, want
formula
to automatically add a 1, 2 or 3 in the cell based on the hire date
after 6
months of service.

After 6 months of service, you get one sick day; then three days
maximum a
year (January - December). If first year anniversary falls on
January -
June you get 3 sick. If it falls on July - Sept you get 2 sick for
remainder
of year. If it falls on Oct - Dec you get 1 sick day for remainder of
the
year. Sick days do not carry forward to the next year.

Examples

Hire Date: July 1, 2006
Six months of service date: Jan. 1, 2007
Sick leave accumlated after six months: 1
First Year Anniversary Date: July 1, 2007
Sick leave accumlated: 2 more for remainder of 2007

Hire Date: Jan. 1, 2006
Six months of service date: July 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Jan. 1, 2007
Sick leave accumlated: 3 for 2007

Hire Date: Oct. 1, 2006
Six months of service date: April 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Oct. 1, 2007
Sick leave accumlated: 1 for remainer of 2007



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Sick time accumulation

Thanks for trying. That didn't work. Let me see if I can explain a little
better.

My spreadsheet has the following:
Employee name / Hire Date / Sick Days Earned / Today's Date

1st Year of Employment
Six months after hire date - Earn 1 sick day
When 1 year anniversary date comes around, you get:
* 3 sick days for remainder of year if 1 year anniversary date
falls
between Jan. - June.
* 2 sick days for remainder of year if 1 year anniversary date
falls
between July - Sept.
* 1 sick day for remainder of year if 1 year anniversary date
falls between
Oct. - Dec.

2nd Year of Employment and thereafter
You get 3 sick days a year

"Roger Govier" wrote:

Hi

Try
=IF((yearstart-hiredate)182.5,1,0)+
IF(MONTH(hiredate)9,1,IF(MONTH(hiredate)6,2,3))

--
Regards

Roger Govier


"clueless" wrote in message
...
Need help writing a complicated formula. Want formula to stay zero
until the
criterias are met as explained below. When criterias are met, want
formula
to automatically add a 1, 2 or 3 in the cell based on the hire date
after 6
months of service.

After 6 months of service, you get one sick day; then three days
maximum a
year (January - December). If first year anniversary falls on
January -
June you get 3 sick. If it falls on July - Sept you get 2 sick for
remainder
of year. If it falls on Oct - Dec you get 1 sick day for remainder of
the
year. Sick days do not carry forward to the next year.

Examples

Hire Date: July 1, 2006
Six months of service date: Jan. 1, 2007
Sick leave accumlated after six months: 1
First Year Anniversary Date: July 1, 2007
Sick leave accumlated: 2 more for remainder of 2007

Hire Date: Jan. 1, 2006
Six months of service date: July 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Jan. 1, 2007
Sick leave accumlated: 3 for 2007

Hire Date: Oct. 1, 2006
Six months of service date: April 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Oct. 1, 2007
Sick leave accumlated: 1 for remainer of 2007




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Sick time accumulation

Hi
Then try
=IF((yearstart-hiredate)182.5,1,0)+IF(MONTH(hiredate)9,0,IF(MON TH(hiredate)6,1,2))

--
Regards

Roger Govier


"clueless" wrote in message
...
Thanks for trying. That didn't work. Let me see if I can explain a
little
better.

My spreadsheet has the following:
Employee name / Hire Date / Sick Days Earned / Today's Date

1st Year of Employment
Six months after hire date - Earn 1 sick day
When 1 year anniversary date comes around, you get:
* 3 sick days for remainder of year if 1 year anniversary
date
falls
between Jan. - June.
* 2 sick days for remainder of year if 1 year anniversary
date
falls
between July - Sept.
* 1 sick day for remainder of year if 1 year anniversary
date
falls between
Oct. - Dec.

2nd Year of Employment and thereafter
You get 3 sick days a year

"Roger Govier" wrote:

Hi

Try
=IF((yearstart-hiredate)182.5,1,0)+
IF(MONTH(hiredate)9,1,IF(MONTH(hiredate)6,2,3))

--
Regards

Roger Govier


"clueless" wrote in message
...
Need help writing a complicated formula. Want formula to stay zero
until the
criterias are met as explained below. When criterias are met, want
formula
to automatically add a 1, 2 or 3 in the cell based on the hire date
after 6
months of service.

After 6 months of service, you get one sick day; then three days
maximum a
year (January - December). If first year anniversary falls on
January -
June you get 3 sick. If it falls on July - Sept you get 2 sick for
remainder
of year. If it falls on Oct - Dec you get 1 sick day for remainder
of
the
year. Sick days do not carry forward to the next year.

Examples

Hire Date: July 1, 2006
Six months of service date: Jan. 1, 2007
Sick leave accumlated after six months: 1
First Year Anniversary Date: July 1, 2007
Sick leave accumlated: 2 more for remainder of 2007

Hire Date: Jan. 1, 2006
Six months of service date: July 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Jan. 1, 2007
Sick leave accumlated: 3 for 2007

Hire Date: Oct. 1, 2006
Six months of service date: April 1, 2006
Sick leave accumlated after six months: 1
First Year Anniversary Date: Oct. 1, 2007
Sick leave accumlated: 1 for remainer of 2007






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
synchronizing timestamp feature with time on video software. 999 Excel Discussion (Misc queries) 4 July 30th 06 10:49 PM
formula to determine time range overlap? William DeLeo Excel Discussion (Misc queries) 0 June 6th 06 08:26 PM
Hot key for time? Dave in Des Moines New Users to Excel 2 March 24th 06 04:31 PM
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
Hot key for time? Dave in Des Moines Excel Discussion (Misc queries) 1 March 24th 06 03:46 PM


All times are GMT +1. The time now is 08:52 PM.

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"