Converting start and end time columns to hours

BlondeMoment

New Member
Joined
Dec 13, 2004
Messages
2
This has probably been asked a million times before but I cannot find it easily in any help lookups.
I have one column of start time (09:00) and one column of end time(17:00). I want to convert these times to hours worked in a third column. Can anyone tell me the formula?If possible less the one break in a separate column? Many thanks.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

=(B2-A2+(B2 < A2)) and format as [h]:mm

or

=(B2-A2+(B2 < A2))*24 and format as general



(the +(B2 < A2) part is to cater for times passing midnight)
 

Forum statistics

Threads
1,148,393
Messages
5,746,437
Members
424,018
Latest member
dionlkk6

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