Article ID: 128776
Article Last Modified on 9/24/2003
APPLIES TO
- Microsoft Works 3.0 Standard Edition
- Microsoft Works 3.0a
- Microsoft Works 3.0b
This article was previously published under Q128776
SYMPTOMS
When you use a Weekly Time Sheet template in Works, the time sheet doesn't
correctly calculate hours worked if the shift begins on one day, and ends
on another. For example, a 10 P.M. to 7 A.M. shift will not calculate
correctly.
CAUSE
The current formula, entered in cells C13:G13, C16:G16, C19:G19,
C22:G22, and C25:G25, is
=HOUR(Time Out-Time In)+MINUTE(Time Out-Time In)/60
where Time In refers to the cell containing the value for Time In,
and Time Out refers to the cell containing the value for Time Out.
This formula cannot correctly calculate hours in shifts that span 2 days.
It returns a value for Hours Worked much larger than the actual value.
RESOLUTION
The following formula checks if the value of Time Out is greater than the
value of Time In, then calculates the total hours differently if the shift
includes two days.
=IF(Time In,IF(Time Out>Time In,(Time Out-Time In)*24,(1-Time In+Time
Out)*24),0)
For example, in cell C13 you would enter the following formula:
=IF(C11,IF(C12>C11,(C12-C11)*24,(1-C11+C12)*24),0)
Additional query words: w_works figure wizard innacurate timeclock time clock card timecard 2 two
Keywords: KB128776