#1   Report Post  
CATHERINE
 
Posts: n/a
Default trouble with excel

Hello,
Iam trying very hard to find a fourmula in order to calculate holidays

for my employees.
The problem is as follow...
If they are in the company for less than 2 years they are entitle to
20 days between the 1st of January and the 31st of december
If they are in the company between 2 and 5 years they are entitle to
22 days from their anniversary date.
If they are in the company for more than 5 years they are entitle to
25 days from their anniversary date.

My problem is to take in consideration their anniversary date (ex
starting date the 15 of march 2000 how many holidays does this person

get?)

If anyone could get back to me on this one I will be very gratfull :

:lol: :lol: :lol: :lol: :lol: :lol:

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Does this work assuming the anniversary date in A15?

=IF(DATEDIF(A15,TODAY(),"y")<2,20,22+IF(DATEDIF(A1 5,TODAY(),"y")=5,3,0))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"CATHERINE" wrote in message
...
Hello,
Iam trying very hard to find a fourmula in order to calculate holidays

for my employees.
The problem is as follow...
If they are in the company for less than 2 years they are entitle to
20 days between the 1st of January and the 31st of december
If they are in the company between 2 and 5 years they are entitle to
22 days from their anniversary date.
If they are in the company for more than 5 years they are entitle to
25 days from their anniversary date.

My problem is to take in consideration their anniversary date (ex
starting date the 15 of march 2000 how many holidays does this person

get?)

If anyone could get back to me on this one I will be very gratfull :

:lol: :lol: :lol: :lol: :lol: :lol:



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
Excel File in Use Notification Missing?? JoD317 Excel Discussion (Misc queries) 6 April 19th 05 02:33 PM
I get a program error when I download an excel template Ladybug Excel Discussion (Misc queries) 3 March 4th 05 12:02 AM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
Excel trouble shooting - no gridlines Stumped Excel Discussion (Misc queries) 11 January 12th 05 10:40 PM
Trouble with Excel 2000 not calculating/performing formulas Brian C Excel Worksheet Functions 1 January 12th 05 03:07 AM


All times are GMT +1. The time now is 09:24 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"