Subtract two decimal numbers, result in hours and minutes

android1

Board Regular
Joined
Feb 12, 2016
Messages
69
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
 

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

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
69
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
 
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,163,468
Messages
5,831,809
Members
430,087
Latest member
meagerd

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