How to get night shift hours of an employee.

rhonixk08

Board Regular
Joined
Sep 10, 2009
Messages
108
I want to get the time differential (night shift) between the two text box in a form but I can't figure it out. Night shift starts at 10:00 PM - 6:00 AM (next day), please see sample below.

Me.txtc2: 08-July-2010 8:00 PM (Start)
Me.txtd2: 09-July-2010 8:00 AM (Stop)

Me.txttotalnd: will be the answer.

Please help to solve this.

Many thanks in advance.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Thank you sir for the reply. But i need a fix formula sir or sample.

Please any suggestion..

Many thanks,
 
Upvote 0
I am not sure what you are looking for as an example; there is one in the link provided. If you are wanting me to work your code for you, well, that takes all the fun out of learning! Give me some time and I will get to it (probably on my next break).
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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