HELP !! Convert 1d 00h 52m to h:mm:ss

Thuisgevoel

New Member
Joined
Jul 5, 2005
Messages
4
MS Excel 2002 sp3 on an winxpsp2 system

Ive been looking around in the forums in the hope to find a solution that would specifically help me solve my problem of converting this unuseable time issue to a useable one but sadly enough i havent found an understandable solution so im posting a request for help.

I am given in an excel 95 sheet (from an external database) data with time displayed in the format 1d 00h 52m (cell c3) with property values shown as [h]:mm:ss and would like to convert the visual value d:h:m to a visual value hh:mm:ss therefore saying that 1d 00h 52m wil become 24:52:00

Who can assist me! Anyone?
 

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.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Try:

=LEFT(C3,FIND("d",C3)-1)+SUBSTITUTE(SUBSTITUTE(RIGHT(C3,LEN(C3)-FIND(" ",C3)),"m",""),"h ",":")

formatted as [hh]:mm:ss
 

Thuisgevoel

New Member
Joined
Jul 5, 2005
Messages
4
Andrew,

Thank you for your tip. I inserted the code after the language conversion and that seems to work. Except for the fact that what i was trying to reach was not written in my question. Regardless of that fact my thanks.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,530
Messages
5,837,904
Members
430,520
Latest member
VenkateshRajaganesan

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
Top