Subtract two decimal numbers, result in hours and minutes

android1

Board Regular
Joined
Feb 12, 2016
Messages
64
Hi,

I have column A and B which contain hours and minutes in decimal. A1 = 15.9, B1 = 10.1.
How do I subtract these numbers and have the result appear in C1 in hours and minutes.
So what I need is C1 = 15 hrs 54mins - 10 hrs 6mins.

Thanks,

Gerry
 

Some videos you may like

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Wait,

Do you literally want to see the text string "15 hrs 54mins - 10 hrs 6mins" ?
Or do you want the result of that subtraction, 5.8 formatted as hours and minutes - 5:48 ?

Try just
=(A1-B1)/24

Format the cell with the formula as a time h:mm
 

android1

Board Regular
Joined
Feb 12, 2016
Messages
64
Hi Jonmo,

I want the result formatted as hours and minutes and your formula does exactly that.
Many thanks for your help, it's greatly appreciated.

Gerry
 

Watch MrExcel Video

Forum statistics

Threads
1,122,838
Messages
5,598,383
Members
414,234
Latest member
grlevesq

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