How many hours between 2 times including dates

Jaffabfc

Board Regular
Joined
Jul 5, 2013
Messages
230
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

In cell A2 i am putting 10/01/19 12:00 in cell G2 i am putting 12/01/19 16:00.

I am wanting to work out the difference between these 2 times.

But the catch is i dont want the hours counting between 16:00 and 08:00 and also weekends/bank holidays if possible.

At the minute i cant even get the hours right can someone help.

thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
If you add =G2-A2 into a cell and change that cell format to [hh]:mm:ss, it will give you the straight time between the two times. To remove the hours between 4p - 8p, weekends, and bank holidays, I don't believe there's a way to do so without VBA.
 
Upvote 0
ive copied this and this also doesnt seem to work
dont copy it lol. learn from it. im not giving you the answer XD. im giving you the "textbook" its better to learn something and get your own answer then to copy it and not understand it. (Unless if its some big macro thing) but this is something not too difficult if its not impossible.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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