decimal pont into time

Peter1973

Well-known Member
Joined
May 13, 2006
Messages
957
I have 3 cells A, A2, A3 in A1 is a time in hh:mm format in cell A2 is a time in hh:mm format and in cell A3 is time but in decimal point format ie 10.75 = 10 hrs 45 mins. I am trying to find a way to calculate A3-(A2+A1) and give me the answer in hh:mm format the issue i am having is the differnet format and the 24 hr clock.

So if A1= 15:21 A2=13:48 and A3=32.25the answer would be 03:06.

any ideas
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Is there any way it is possible to represent negative numbers also ie if A3/24 = 23:00 and A2+A1 = 44:00 then the reult would be -21:00
 
Upvote 0
You would have to switch the negative time to a text value, unless you switch to the 1904 date system which allows for negative time, however note that if you do this all your dates will change on your spreadsheet, so I will give you the text version:

=IF((A3/24)-(A2+A1)<0,"-"&TEXT(ABS((A3/24)-(A2+A1)),"[h]:mm"),(A3/24)-(A2+A1))
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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