#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

Were trying to figure our how early an employee typically punches in for
work, as we want to give her a bonus. I have the punch clock data in an
excel column in the following format (a few of the entries from this past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

Shes supposed to start work at 10:00am every day, and I need to figure out
what time she usually checks in. Ive tried a typical averaging formula, but
that gives me the mean time between all of the days, which is around noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes. I've
been having trouble with the log-on for the last hour.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Averaging Time

BostonBoy wrote:
Were trying to figure our how early an employee typically punches in for
work, as we want to give her a bonus. I have the punch clock data in an
excel column in the following format (a few of the entries from this past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

Shes supposed to start work at 10:00am every day, and I need to figure out
what time she usually checks in. Ive tried a typical averaging formula, but
that gives me the mean time between all of the days, which is around noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes. I've
been having trouble with the log-on for the last hour.



With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Averaging Time

Hi,

Extract the time into a helper column with

=TIME(HOUR(A1),MINUTE(A1),0)

Drag down as required and average these and you should get 09:27

Mike

"BostonBoy" wrote:

Were trying to figure our how early an employee typically punches in for
work, as we want to give her a bonus. I have the punch clock data in an
excel column in the following format (a few of the entries from this past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

Shes supposed to start work at 10:00am every day, and I need to figure out
what time she usually checks in. Ive tried a typical averaging formula, but
that gives me the mean time between all of the days, which is around noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes. I've
been having trouble with the log-on for the last hour.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

First of all, I'm sorry for the multiple posts. My browser kept showing
error messages upon hitting the send button.

I tried the method you suggested and received the #value! error message.

The original cells are formatted as date cells. I've changed their format
to time cells, but that isn't working either. Any other ideas on this one?
I've got daily entries for 2 years, so copying them into a new space is time
consuming


"Glenn" wrote:

BostonBoy wrote:
Were trying to figure our how early an employee typically punches in for
work, as we want to give her a bonus. I have the punch clock data in an
excel column in the following format (a few of the entries from this past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

Shes supposed to start work at 10:00am every day, and I need to figure out
what time she usually checks in. Ive tried a typical averaging formula, but
that gives me the mean time between all of the days, which is around noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes. I've
been having trouble with the log-on for the last hour.



With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

Got it!

"Glenn" wrote:

BostonBoy wrote:
Were trying to figure our how early an employee typically punches in for
work, as we want to give her a bonus. I have the punch clock data in an
excel column in the following format (a few of the entries from this past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

Shes supposed to start work at 10:00am every day, and I need to figure out
what time she usually checks in. Ive tried a typical averaging formula, but
that gives me the mean time between all of the days, which is around noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes. I've
been having trouble with the log-on for the last hour.



With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

Any way to make that formula work with empty rows in between the entries?
I've got a couple hundred of them.

"Glenn" wrote:

BostonBoy wrote:
Were trying to figure our how early an employee typically punches in for
work, as we want to give her a bonus. I have the punch clock data in an
excel column in the following format (a few of the entries from this past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

Shes supposed to start work at 10:00am every day, and I need to figure out
what time she usually checks in. Ive tried a typical averaging formula, but
that gives me the mean time between all of the days, which is around noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes. I've
been having trouble with the log-on for the last hour.



With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Averaging Time

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the entries?
I've got a couple hundred of them.


"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.


BostonBoy wrote:
We're trying to figure our how early an employee typically punches in
for
work, as we want to give her a bonus. I have the punch clock data in
an
excel column in the following format (a few of the entries from this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need to figure
out
what time she usually checks in. I've tried a typical averaging
formula, but
that gives me the mean time between all of the days, which is around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes.
I've
been having trouble with the log-on for the last hour.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

Didn't work for me. The formula seems affested by the empty cells in between
the numbers. Any ideas?

"David Biddulph" wrote:

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the entries?
I've got a couple hundred of them.


"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.


BostonBoy wrote:
We're trying to figure our how early an employee typically punches in
for
work, as we want to give her a bonus. I have the punch clock data in
an
excel column in the following format (a few of the entries from this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need to figure
out
what time she usually checks in. I've tried a typical averaging
formula, but
that gives me the mean time between all of the days, which is around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of minutes.
I've
been having trouble with the log-on for the last hour.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Averaging Time

I've got the 5 values from your original example. I average them with the
formula which Glenn suggested, & get 10:02. If I include blank lines so
that the formula now calls up a range of 9 cells, 4 of them blank, the
average is stll 10:02.

What values do you have, what formula, what result did you get, and what
result did you expect?
--
David Biddulph

"BostonBoy" wrote in message
...
Didn't work for me. The formula seems affested by the empty cells in
between
the numbers. Any ideas?

"David Biddulph" wrote:

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the
entries?
I've got a couple hundred of them.


"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.


BostonBoy wrote:
We're trying to figure our how early an employee typically punches
in
for
work, as we want to give her a bonus. I have the punch clock data
in
an
excel column in the following format (a few of the entries from this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need to
figure
out
what time she usually checks in. I've tried a typical averaging
formula, but
that gives me the mean time between all of the days, which is around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of
minutes.
I've
been having trouble with the log-on for the last hour.






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time


5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

The average of those times is 9:27. It can't be 10:02, because that's the
highest one. Perhaps you're having the same problem as me. When I add rows
in between the numbers, the ultimate average changes. Very perplexing.

If I delete the empty rows, it works. But I've got hundreds of them, and
I'm hoping there's a formula that can do it. Any other ideas?



The five values from the original example were

"David Biddulph" wrote:

I've got the 5 values from your original example. I average them with the
formula which Glenn suggested, & get 10:02. If I include blank lines so
that the formula now calls up a range of 9 cells, 4 of them blank, the
average is stll 10:02.

What values do you have, what formula, what result did you get, and what
result did you expect?
--
David Biddulph

"BostonBoy" wrote in message
...
Didn't work for me. The formula seems affested by the empty cells in
between
the numbers. Any ideas?

"David Biddulph" wrote:

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the
entries?
I've got a couple hundred of them.

"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.

BostonBoy wrote:
We're trying to figure our how early an employee typically punches
in
for
work, as we want to give her a bonus. I have the punch clock data
in
an
excel column in the following format (a few of the entries from this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need to
figure
out
what time she usually checks in. I've tried a typical averaging
formula, but
that gives me the mean time between all of the days, which is around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of
minutes.
I've
been having trouble with the log-on for the last hour.








  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Averaging Time

Yes, Sorry. I must have been asleep. I fell into the old trap of
forgetting to array-enter the formula. When I enter the formula correctly I
see the problem as you describe.
To get a correct answer I used a helper column with =IF(A2<"",MOD(A2,1),"")
and averaged that.
--
David Biddulph

"BostonBoy" wrote in message
...

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

The average of those times is 9:27. It can't be 10:02, because that's the
highest one. Perhaps you're having the same problem as me. When I add
rows
in between the numbers, the ultimate average changes. Very perplexing.

If I delete the empty rows, it works. But I've got hundreds of them, and
I'm hoping there's a formula that can do it. Any other ideas?



The five values from the original example were

"David Biddulph" wrote:

I've got the 5 values from your original example. I average them with
the
formula which Glenn suggested, & get 10:02. If I include blank lines so
that the formula now calls up a range of 9 cells, 4 of them blank, the
average is stll 10:02.

What values do you have, what formula, what result did you get, and what
result did you expect?
--
David Biddulph

"BostonBoy" wrote in message
...
Didn't work for me. The formula seems affested by the empty cells in
between
the numbers. Any ideas?

"David Biddulph" wrote:

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the
entries?
I've got a couple hundred of them.

"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.

BostonBoy wrote:
We're trying to figure our how early an employee typically
punches
in
for
work, as we want to give her a bonus. I have the punch clock
data
in
an
excel column in the following format (a few of the entries from
this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need to
figure
out
what time she usually checks in. I've tried a typical averaging
formula, but
that gives me the mean time between all of the days, which is
around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of
minutes.
I've
been having trouble with the log-on for the last hour.








  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

I tried making the helper column, but if I drag the formula down the entire
helper column, then all the rows where there was no entry in A get a
"12:00am" entry, because the formula in the B helper column is acting against
a blank in the A column. So, my ultimate averaging at the bottom comes up
skewed. Any way to make a helper column without deleting every row with no
entry?

"David Biddulph" wrote:

Yes, Sorry. I must have been asleep. I fell into the old trap of
forgetting to array-enter the formula. When I enter the formula correctly I
see the problem as you describe.
To get a correct answer I used a helper column with =IF(A2<"",MOD(A2,1),"")
and averaged that.
--
David Biddulph

"BostonBoy" wrote in message
...

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

The average of those times is 9:27. It can't be 10:02, because that's the
highest one. Perhaps you're having the same problem as me. When I add
rows
in between the numbers, the ultimate average changes. Very perplexing.

If I delete the empty rows, it works. But I've got hundreds of them, and
I'm hoping there's a formula that can do it. Any other ideas?



The five values from the original example were

"David Biddulph" wrote:

I've got the 5 values from your original example. I average them with
the
formula which Glenn suggested, & get 10:02. If I include blank lines so
that the formula now calls up a range of 9 cells, 4 of them blank, the
average is stll 10:02.

What values do you have, what formula, what result did you get, and what
result did you expect?
--
David Biddulph

"BostonBoy" wrote in message
...
Didn't work for me. The formula seems affested by the empty cells in
between
the numbers. Any ideas?

"David Biddulph" wrote:

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the
entries?
I've got a couple hundred of them.

"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.

BostonBoy wrote:
We're trying to figure our how early an employee typically
punches
in
for
work, as we want to give her a bonus. I have the punch clock
data
in
an
excel column in the following format (a few of the entries from
this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need to
figure
out
what time she usually checks in. I've tried a typical averaging
formula, but
that gives me the mean time between all of the days, which is
around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of
minutes.
I've
been having trouble with the log-on for the last hour.









  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Averaging Time

BostonBoy wrote:
Any way to make that formula work with empty rows in between the entries?
I've got a couple hundred of them.


=AVERAGE(IF(A1:A999="","",MOD(A1:A999,1)))

Again, array-entered. Adjust the range as needed.
  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Averaging Time

Genius! Thanks, Phil

"Glenn" wrote:

BostonBoy wrote:
Any way to make that formula work with empty rows in between the entries?
I've got a couple hundred of them.


=AVERAGE(IF(A1:A999="","",MOD(A1:A999,1)))

Again, array-entered. Adjust the range as needed.

  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Averaging Time

If =IF(A2<"",MOD(A2,1),"") is returning a zero, then column A isn't blank.
--
David Biddulph

"BostonBoy" wrote in message
...
I tried making the helper column, but if I drag the formula down the entire
helper column, then all the rows where there was no entry in A get a
"12:00am" entry, because the formula in the B helper column is acting
against
a blank in the A column. So, my ultimate averaging at the bottom comes up
skewed. Any way to make a helper column without deleting every row with
no
entry?

"David Biddulph" wrote:

Yes, Sorry. I must have been asleep. I fell into the old trap of
forgetting to array-enter the formula. When I enter the formula
correctly I
see the problem as you describe.
To get a correct answer I used a helper column with
=IF(A2<"",MOD(A2,1),"")
and averaged that.
--
David Biddulph

"BostonBoy" wrote in message
...

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

The average of those times is 9:27. It can't be 10:02, because that's
the
highest one. Perhaps you're having the same problem as me. When I add
rows
in between the numbers, the ultimate average changes. Very perplexing.

If I delete the empty rows, it works. But I've got hundreds of them,
and
I'm hoping there's a formula that can do it. Any other ideas?



The five values from the original example were

"David Biddulph" wrote:

I've got the 5 values from your original example. I average them with
the
formula which Glenn suggested, & get 10:02. If I include blank lines
so
that the formula now calls up a range of 9 cells, 4 of them blank, the
average is stll 10:02.

What values do you have, what formula, what result did you get, and
what
result did you expect?
--
David Biddulph

"BostonBoy" wrote in message
...
Didn't work for me. The formula seems affested by the empty cells
in
between
the numbers. Any ideas?

"David Biddulph" wrote:

Not a problem if there are empty rows. The formula still works.
--
David Biddulph

"BostonBoy" wrote in message
...
Any way to make that formula work with empty rows in between the
entries?
I've got a couple hundred of them.

"Glenn" wrote:
With your data in A1:A5, put the following in B1:

=AVERAGE(MOD(A1:A5,1))

and hit Ctrl-Shift-Enter (because this is an array formula).

Format B1 as time.

BostonBoy wrote:
We're trying to figure our how early an employee typically
punches
in
for
work, as we want to give her a bonus. I have the punch clock
data
in
an
excel column in the following format (a few of the entries
from
this
past
month):

5/14/08 10:02 AM
5/15/08 9:16 AM
5/17/08 9:28 AM
5/18/08 9:16 AM
5/22/08 9:15 AM

She's supposed to start work at 10:00am every day, and I need
to
figure
out
what time she usually checks in. I've tried a typical
averaging
formula, but
that gives me the mean time between all of the days, which is
around
noon on
the 17th.

Any ideas?

Sorry if this is a duplicate post by me in the last couple of
minutes.
I've
been having trouble with the log-on for the last hour.











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
Averaging Time Keit Excel Discussion (Misc queries) 1 June 12th 07 01:01 AM
Averaging time in hh:mm format Ryan[_2_] Excel Discussion (Misc queries) 2 April 26th 07 11:48 PM
Averaging Time PeterM Excel Discussion (Misc queries) 4 January 29th 07 02:16 PM
Averaging Time Difference vldavis809 Excel Discussion (Misc queries) 1 July 8th 06 09:42 AM
Averaging time katgolightly Excel Worksheet Functions 5 December 28th 04 10:02 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"