Formula to calculate average time

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,422
Office Version
  1. 2016
Platform
  1. Windows
Guys,

I have a spreadsheet which has various columns where users enter details of issues that occur. 1 of these columns has the time the issue was noticed and another the time the issue was concluded.

From those 2 columns I have been able to calculate the average time that an issue takes to resolve, (columns are formatted as h:mm), but is there a way I can get Excel to calculate the average time that an issue occurs? This is the time on the clock that it happens.

To be more precise, I want Excel to work out if there is a pattern to when these issues arise and therefore tell me what the 'average' clock time is that they crop up.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Barry,

I hand't thought of that - but if I do will Excel just average it as an amount of time rather than the actual time on the clock if that makes sense?
 
Upvote 0
Barry,

Disregard my last - tried it and it worked.

Sometimes things are so obvious you just can't see them!:laugh:
 
Upvote 0
Actually - it doesn't work because the formula is just calculating it as a quantity of time.

I've just tried 23:59 to 03:00 and it has given me 13:29 which is not what I want - can anyone help?
 
Upvote 0
If you have times either side of midnight then it gets a bit trickier, presumably you want the average of 23:59 and 03:00 to be approx 01:30....but what if you had three times like 05:00, 12:00 and 20:00, what's the average of those?

Are you averaging times which could occur any time of day or within a specific period?
 
Upvote 0
Barry - yes, the issues can occur at any point during a 24hr period and sometimes do go across midnight.

Should I put this problem to one side or do you think there is a solution?
 
Upvote 0
sharky12345,

Barry is pointing out that if you want to calculate the average of a group of times, you need to know the true relationship between all the values from a common baseline.

If your data set were the 5 times recorded below and you wanted to know the average, you could calculate that using the date & time values and arrive at 4:12 AM on 11/15/2011. This is different than the average value of 13:48 that you will get if you average the times only.
Excel Workbook
ABCDEF
1Date & TimeDecimal ValueTime OnlyDecimal Value
211/14/2011 20:0040861.833320:00:000.8333
311/14/2011 21:0040861.875021:00:000.8750
411/15/2011 05:0040862.20835:00:000.2083
511/15/2011 11:0040862.458311:00:000.4583
611/15/2011 12:0040862.500012:00:000.5000
7
8Averages-->11/15/2011 04:1240862.175013:48:000.5750
9
Sheet



However, taking a step back to the purpose of why you are analyzing this...

I want Excel to work out if there is a pattern to when these issues arise and therefore tell me what the 'average' clock time is that they crop up.

The average time of 4:12 AM doesn't help you understand the pattern and diagnose the problem. :eeek:

Rather than calculating an average time, a better approach might be to chart the data then look for clusters and patterns.
 
Upvote 0
Jerry,

Got that - many thanks for your help, I think I will go down the chart route.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top