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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

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,181,439
Messages
5,929,918
Members
436,705
Latest member
Priti19

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