Hours Calculation

mohdabrar

New Member
Joined
Aug 4, 2015
Messages
40
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hello,

I need some help with a split shift calculations. I have the data as below for Split shifts in an excel sheet, is there a formula that I can use to calculate the sum of total hours from 08:00 - 12:00 and then 16:00 - 21:00. Please let me know if I could achieve this by changing the format in the table.

DS8:00 - 12:0016:00 - 21:00

Thanks,
Abrar.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Abrar,

Could you please be more specific on your question? Better if you could upload sample sheet.

Thanks
Shesil
 
Upvote 0
The simple formula would be:
Excel Formula:
=(B1-A1)*24

With B1 holding the largest value,

Looking at the sample, you could use a UDF to pull out the times or you can change the layout of your table to get each time in a cell.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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