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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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