time computation

New Member
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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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.

W0W! super... thank you very much. this will be a great help.

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

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

See,

http://www.cpearson.com/excel/overtime.htm

Replies
1
Views
457
Replies
1
Views
498
Replies
0
Views
907
Replies
1
Views
192
Replies
5
Views
194

1,196,239
Messages
6,014,166
Members
441,807
Latest member
sjkenjalo

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?

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

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