trouble with excel

C

CATHERINE

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

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 perso

get?)

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

:lol: :lol: :lol: :lol: :lol: :lol
 
B

Bob Phillips

Does this work assuming the anniversary date in A15?

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

--

HTH

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

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

Similar Threads

excell 2
EXCEL PROBLEM 4
Vacation Accruals 3
Excel Need aid in Excel Formulas 3
vacation tracker 1
How do I make an IF statement have multiple TRUE answers? 1
Spreadsheet to total weeks up to 52 1
Problem with function 8

Top