time computation

radix

New Member
Joined
Nov 9, 2005
Messages
3
I'm just want to get information on how i can get the total number of hours if the date is different. example : person A is working on a graveyard shift and i want to get how many hours and mins he worked by entering his login and logout time. his shift would start at 8PM and would end at 4AM. i tried subtracting the logout time to the login time but i only get sharp sign to the cell. please help. thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
radix said:
I'm just want to get information on how i can get the total number of hours if the date is different. example : person A is working on a graveyard shift and i want to get how many hours and mins he worked by entering his login and logout time. his shift would start at 8PM and would end at 4AM. i tried subtracting the logout time to the login time but i only get sharp sign to the cell. please help. thanks

Try something like,

=B1-A1+(B1 < A1)

Where A1 is start time and B1 is end time

BTW..

8PM is not a valid time but 8:00 PM is.
 
Upvote 0
By the way, i have another dilemma. what kind of formula should i use in case lunch and breaks would need to be taken off this computed time. i tried using the IF formula but i did not arrive to the right solution. thanks in advance
 
Upvote 0

Forum statistics

Threads
1,222,245
Messages
6,164,795
Members
451,917
Latest member
WEB78

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