Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating Dates in Excel XP

Status
Not open for further replies.

Barbara265

Technical User
Oct 16, 2000
30
0
0
US
Hello,

I need to calculate the length of service based on date of hire (in years, months, days) for each employee within a group, and then calculate the average length of service (in years, months, days) for the entire group.

Any suggestions will be gratefully accepted!

Barb
 
if the hire date is in col a then for the employee in row 2 the formula would be....

in col b
Years:
=datedif(a2,now(),"Y")
in col c
Months:
=datedif(a2,now(),"M")
in col d
Days:
=datedif(a2,now(),"D")


then run an average on each col.
 
ETID - I don't think tthat'll work - surely you get the same time period but expressed in different formats eg 2 years would be
2
24
730

May I suggest you make life easier for yourself and do the whole thing in days

=TODAY()-DateOfHire
format as number and away you go Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top