A Completely Different Time and Decimals Question

Nicolai100

New Member
Joined
Apr 5, 2011
Messages
2
Hello everyone,

I've seen quite a few posts about converting decimals to other time formats, but none that match my situation.

I am importing data from a data base (that I cannot edit) and am trying to subtract two time values. My problem is that the time is expressed in the form of a decimal, but instead of 1.50 equalling 1:30, 1.50 equals 1:50.

As long as the time isn't at the top of the hour, I don't have a problem (I format as text, Find/Replace "." with ":" and format as time), but if the time is 10:00, it is displayed as "10", no decimal point to find and replace. I've tried formatting as Number with 2 decimal places, but the Find/Replace doesn't recognize the 'non-entered' decimal and doesn't replace it, neither does paste special.

Any thoughts on what I can do? I know I could manually enter the information, but that is 10 to 14 thousand entries a month; I don't have that kind of time. Any help would be greatly appreciated.

Thank you in advance,
Matthew
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
To convert such values to time, =DOLLARDE(A1,60)/24 and format as time.

To subtract and return the result as time,

=(DOLLARDE(A2, 60) - DOLLARDE(A1,60))/24
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

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