ddd:hh:mm need calculate average days

tndanley74

New Member
Joined
Feb 25, 2015
Messages
4
I have a system that's exporting the time between the time a specimen is collect to the time the result is received. its showing info such as :

[TABLE="width: 163"]
<colgroup><col></colgroup><tbody>[TR]
[TD]000:05:08
[/TD]
[/TR]
[TR]
[TD]000:05:08[/TD]
[/TR]
[TR]
[TD]000:04:30
[/TD]
[/TR]
[TR]
[TD]000:04:24[/TD]
[/TR]
[TR]
[TD]000:03:54
[/TD]
[/TR]
[TR]
[TD]000:03:44[/TD]
[/TR]
[TR]
[TD]000:02:46
[/TD]
[/TR]
</tbody>[/TABLE]

I need to be able to calculate average days hours minutes from this. But the =Average() function does not work. Can someone provide suggestions.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
try this:


Excel 2010
AB
2000:05:0805:08:00
3000:05:0805:08:00
4000:04:3004:30:00
5000:04:2404:24:00
6000:03:5403:54:00
7000:03:4403:44:00
8000:02:4602:46:00
904:13:26
Sheet1
Cell Formulas
RangeFormula
B2=TIMEVALUE(RIGHT(A2,5))
B9=AVERAGE(B2:B8)
 
Upvote 0
Excel doesn't recognize this format ddd:hh:mm as a days or time. It could be converted though.

If all the days are zero (000: ) in your data, Select the data column and use the Replace (Ctrl+H) to replace 000: with nothing. That should convert everything to hh:mm time that Excel recognizes. You can then average the time.

Otherwise if the data has days (001: ), use a formula like this to convert it to days-time
=LEFT(A1,3) + RIGHT(A1,5)
Format the cells with the formulas as Custom: d hh:mm
 
Upvote 0
Alpha frog that works great! The only hiccup is if I have more than 31 days in the ddd: part.. it does something funky

040:05:08 --> 30 05:08

(comfy I couldn't get yours to work because its not all zero for days)

Excel doesn't recognize this format ddd:hh:mm as a days or time. It could be converted though.

If all the days are zero (000: ) in your data, Select the data column and use the Replace (Ctrl+H) to replace 000: with nothing. That should convert everything to hh:mm time that Excel recognizes. You can then average the time.

Otherwise if the data has days (001: ), use a formula like this to convert it to days-time
=LEFT(A1,3) + RIGHT(A1,5)
Format the cells with the formulas as Custom: d hh:mm
 
Upvote 0
Alpha frog that works great! The only hiccup is if I have more than 31 days in the ddd: part.. it does something funky

040:05:08 --> 30 05:08

Yes, that's a limitation of days-time cell formatting in Excel. It can't display days-time > 31 days. The cell value is correct though despite the inaccurate formatting displayed. You could use another cell to display days-time as text.
=INT(B1)&TEXT(B1,":hh:mm")

Or just display the days-time as a decimal number where integer is days and the decimal portion is time.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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