A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Average of Years employed



 
 
Thread Tools Display Modes
  #1  
Old July 28th, 2009, 09:39 PM posted to microsoft.public.excel.worksheet.functions
SGee
external usenet poster
 
Posts: 1
Default Average of Years employed

I am trying to find an average length of employment for a group of employees
at the time of their promotion. I am using the formula below to calculate
each employee's time in service at the date of promotion:

=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"

whe
D4 = beginning employment date
E4 = promotion date

What I would like to do is average the time on the job for the employees
promoted in each group. I cannot simply average the column due (I think) to
the text in the output.

Any suggestions would be most appreciated. Thanks

Scott
  #2  
Old July 28th, 2009, 11:12 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default Average of Years employed

1. =e4-d4 gives you the number of days the person has been on staff.
2. Copy this down for all staff members
3. Average this range.
4. If you want to display the result the same way, you can use:
=DATEDIF(0,a1,"y") & " Yrs, " & DATEDIF(0,a1,"ym") & " Months"
where a1 holds the average.

Regards,
Fred


"SGee" wrote in message
...
I am trying to find an average length of employment for a group of
employees
at the time of their promotion. I am using the formula below to calculate
each employee's time in service at the date of promotion:

=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"

whe
D4 = beginning employment date
E4 = promotion date

What I would like to do is average the time on the job for the employees
promoted in each group. I cannot simply average the column due (I think)
to
the text in the output.

Any suggestions would be most appreciated. Thanks

Scott


  #3  
Old July 28th, 2009, 11:21 PM posted to microsoft.public.excel.worksheet.functions
Rajesh Mehmi
external usenet poster
 
Posts: 25
Default Average of Years employed

Hi Scott

could you not split your formula below
=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"
in the next two columns

for years Column G
=DATEDIF(D4,E4,"y")
for months Column H
=DATEDIF(D4,E4,"ym")

then average them
=SUM(G4:G17)+(QUOTIENT(SUM(H4:H17),12))& " Yrs " & MOD(SUM(H4:H17),12) &"
Months"


--
Best regards

Rajesh Mehmi



"SGee" wrote in message
...
I am trying to find an average length of employment for a group of
employees
at the time of their promotion. I am using the formula below to calculate
each employee's time in service at the date of promotion:

=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"

whe
D4 = beginning employment date
E4 = promotion date

What I would like to do is average the time on the job for the employees
promoted in each group. I cannot simply average the column due (I think)
to
the text in the output.

Any suggestions would be most appreciated. Thanks

Scott



  #4  
Old July 28th, 2009, 11:29 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Average of Years employed

How about doing the averages first:

=datedif(average(d4:d999),average(e4:e999),"y") & " Years, " & .....

Change the ranges to match.

SGee wrote:

I am trying to find an average length of employment for a group of employees
at the time of their promotion. I am using the formula below to calculate
each employee's time in service at the date of promotion:

=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"

whe
D4 = beginning employment date
E4 = promotion date

What I would like to do is average the time on the job for the employees
promoted in each group. I cannot simply average the column due (I think) to
the text in the output.

Any suggestions would be most appreciated. Thanks

Scott


--

Dave Peterson
  #5  
Old July 28th, 2009, 11:44 PM posted to microsoft.public.excel.worksheet.functions
MyVeryOwnSelf[_2_]
external usenet poster
 
Posts: 146
Default Average of Years employed

I am trying to find an average length of employment for a group of
employees at the time of their promotion. I am using the formula
below to calculate each employee's time in service at the date of
promotion:

=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"

whe
D4 = beginning employment date
E4 = promotion date

What I would like to do is average the time on the job for the
employees promoted in each group. I cannot simply average the column
due (I think) to the text in the output.


One way is to base the calculation on the original data, rather than on the
concatenation; for example:
=INT((AVERAGE(E:E)-AVERAGE(D))/365.25) & " Yrs, " &
ROUND(12*MOD((AVERAGE(E:E)-AVERAGE(D))/365.25,1),0) & " Months"

Explanation: the average of a bunch of differences equals the difference of
the averages.

Modify to suit.

(I use Excel 2003.)
  #6  
Old July 29th, 2009, 12:29 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Average of Years employed

Try this array formula** :

D420 = beginning employment date
E4:E20 = promotion date

=AVERAGE((E4:E20-D420)/365.25)

You may want to round off the result** :

=ROUND(AVERAGE((E4:E20-D420)/365.25),1)

That'll round to 1 decimal place

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"SGee" wrote in message
...
I am trying to find an average length of employment for a group of
employees
at the time of their promotion. I am using the formula below to calculate
each employee's time in service at the date of promotion:

=DATEDIF(D4,E4,"y") & " Yrs, " & DATEDIF(D4,E4,"ym") & " Months"

whe
D4 = beginning employment date
E4 = promotion date

What I would like to do is average the time on the job for the employees
promoted in each group. I cannot simply average the column due (I think)
to
the text in the output.

Any suggestions would be most appreciated. Thanks

Scott



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.