A Microsoft Excel forum. ExcelBanter

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 » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Averaging times that cross midnight?



 
 
Thread Tools Display Modes
  #1  
Old May 31st 12, 05:55 AM
Smurfy Smurfy is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
Posts: 4
Smile Averaging times that cross midnight?

I keep track of what times I complete various task at work. These times could be before or after midnight

I would like to do an average but i don't know how.

any ideas? or maybe I should just forget it on times.....
Ads
  #2  
Old May 31st 12, 09:57 AM posted to microsoft.public.excel.worksheet.functions
joeu2004[_2_]
external usenet poster
 
Posts: 637
Default Averaging times that cross midnight?

"Smurfy" > wrote:
> I keep track of what times I complete various task at work.
> These times could be before or after midnight
> I would like to do an average but i don't know how.
> any ideas? or maybe I should just forget it on times.....


You don't provide sufficient details for us to offer a concrete solution. I
can only offer some concepts.

The easiest thing to do is: keep track of the date and time in each cell.
For example, instead of recording just 11:00 PM and 1:00 AM, record
5/30/2012 11:00 PM and 5/31/2012 1:00 AM. If they are recorded in A1 and
B1, the time difference is easy to compute:

=B1-A1

formatted as Time or as Custom [h]:mm if the difference might be greater
than 24 hours.

Note: You can also format A1 and B1 with to display just Time, if you like.

Alternatively, if A1 and B1 contain just time, you might compute the
difference using:

=B1-A1+(B1<A1)

However, that works only if the difference between A1 and B1 is less than 24
hours.

As for the average, simply use the AVERAGE function with a range of cells
that contain the time differences.

Alternatively, if A1:A10 contains start times and B1:B10 contains end times,
use the following array-entered formula (press ctrl+shift+Enter instead of
just Enter):

=AVERAGE(B1:B10-A1:A10)

or

=AVERAGE(B1:B10-A1:A10+(B1:B10<A1:A10))

depending on whether dates are included.

  #3  
Old May 31st 12, 05:49 PM
Smurfy Smurfy is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
Posts: 4
Default

Sorry it was so vague....

I'm not figuring any differences in times. just the average time a task was complete. But it may have been before or after midnight. Times are in hh:mm format using a 24 hour format.

this results in each of the min, avg, and max being off. The result I get is that the [***] min and max are backwards..

*** I think I was overthinking this ... I'll just switch the min, max formulas.
  #4  
Old May 31st 12, 05:54 PM
Smurfy Smurfy is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
Posts: 4
Default

OK ... but now of course my avg is not right ...

an avg time between 23:30 & 00:04 results in 10:20

actually swapping the min/max won't work either ... it throws those off if the times end up all before or after midnight

uhg ...
  #5  
Old May 31st 12, 06:05 PM
Spencer101 Spencer101 is offline
Senior Member
 
First recorded activity by ExcelBanter: Mar 2012
Posts: 653
Default

Quote:
Originally Posted by Smurfy View Post
OK ... but now of course my avg is not right ...

an avg time between 23:30 & 00:04 results in 10:20

actually swapping the min/max won't work either ... it throws those off if the times end up all before or after midnight

uhg ...
Any chance you could post an example workbook with dummy data?

I'm not sure I'm understanding how you get to "23:30 & 00:04 results in 10:20"
  #6  
Old May 31st 12, 10:45 PM
Smurfy Smurfy is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
Posts: 4
Talking

Quote:
Date Time


Minimum 00:09
Average 10:01
Maximum23:59


05/13/2012 23:59
05/14/2012
05/15/2012 00:40
05/16/2012
05/20/2012
05/22/2012
05/23/2012 00:09
05/27/2012 23:54
05/28/2012 01:27
10 characters to short? not anymore....
 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Averaging times (similar to lap times) cqmman Excel Discussion (Misc queries) 1 June 22nd 07 11:15 PM
Finding times between 6pm and Midnight... Alex Excel Programming 2 June 7th 07 04:18 PM
Variables with times between Midnight and 1:30am [email protected][_2_] Excel Programming 1 December 4th 06 11:24 PM
Cross-Worksheet Averaging drvortex Excel Worksheet Functions 0 June 28th 06 10:28 PM
averaging times SYBS Excel Worksheet Functions 4 June 15th 06 06:23 PM


All times are GMT +1. The time now is 02:52 PM.


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