Change exported dates to values and calculate average

NewOrderFac33

Well-known Member
Joined
Sep 26, 2011
Messages
1,283
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
Good afternoon,

I have exported data which contains a column showing durations in the following (text) format:

1d 3h 50m 32s
0d 0h 0m 47s
0d 1h 10m 46s
0d 1h 39m 50s
0d 0h 0m 43s
0d 0h 9m 29s
0d 0h 41m 27s

I would like to be able convert these labels into time values, in order to calculate the average for the column - can anyone suggest how I might be ale to accomplish that, please?

Thanks - Pete
 
Good morning - I'm still getting this, using your formulae as above(we're on Office 2016, if that helps?)
Time StringTotalDayTime
45d 1h 27m 44s
14:01:27:44​
14 days​
01 hrs 27 mins​
42d 7h 26m 33s
11:07:26:33​
11 days​
07 hrs 26 mins​
45d 7h 23m 30s
14:07:23:30​
14 days​
07 hrs 23 mins​
20d 7h 22m 14s
20:07:22:14​
20 days​
07 hrs 22 mins​
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Good morning - thanks for your suggestion, but we're using Office 2016, so the TEXTBEFORE function isn't available :-(
 
Upvote 0
Change the formatting on the Day to General.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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