Convert hh:mm:dd to decimal time

paulag5000

New Member
Joined
May 15, 2017
Messages
2
Hello,
I've tried converting the format hh:mm:dd to decimal time and it isn't working.

My input data values are coming from a SW program that creates a text output.
It is coming in either as general or custom format.

Input = 76:41:30

I want my output to be 76.69


I think my problem may lie in the format of the input cell.

For example:

9685:23:28 is cell C7.
When I highlight it, the formula bar shows 2/6/1901 1:23:28 PM
This is formatted as custom (h:mm:ss)
Then my output cell, C7*24, displays 9685.39. It is formatted as a number. This is CORRECT.
If I change C7 to be formatted as TIME, it also works.


However, cell C6 reads 10584:00:00
When I highlight it, the formula bar shows 10584:00:00
It is formatted as General
When I create a new cell = C6*24, I get the #VALUE error
Or if I do a bunch of manipulations, I keep getting the error.
I also took this cell and changed it to the "Custom" format, with h:mm:ss, and I still continue to get the #VALUE no matter what.

help!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Maybe:

=IF(ISNUMBER(C6),C6*24,LEFT(C6,FIND(":",C6)-1)+("0:"&MID(C6,FIND(":",C6)+1,99))*24)

Regards
 
Upvote 0
Ahhhh! I wondered if I had exceeded some threshold. So, I was just barking up the wrong tree by worrying about the cell format.
I will try your formulas below. thank you.
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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