ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula for hr worked that cross 12:00 am (https://www.excelbanter.com/excel-discussion-misc-queries/155161-formula-hr-worked-cross-12-00-am.html)

dbow

formula for hr worked that cross 12:00 am
 
I need the formula that will figure hrs worked in a shift that starts in one
day and ends in the next.
Excel 2003

Bob Phillips

formula for hr worked that cross 12:00 am
 
=MOD(A2-A1,1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"dbow" wrote in message
...
I need the formula that will figure hrs worked in a shift that starts in
one
day and ends in the next.
Excel 2003




Mike H

formula for hr worked that cross 12:00 am
 
Try this:-

=IF(A1B1,B1+1-A1,B1-A1)

Formatted as hh:mm

Mike

"dbow" wrote:

I need the formula that will figure hrs worked in a shift that starts in one
day and ends in the next.
Excel 2003


David Biddulph[_2_]

formula for hr worked that cross 12:00 am
 
=MOD(B2-A2,1) and format as [hh]:mm.
If you want decimal hours, then =MOD(B2-A2,1) and format as General or
Number.
--
David Biddulph

"dbow" wrote in message
...
I need the formula that will figure hrs worked in a shift that starts in
one
day and ends in the next.
Excel 2003





All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com