Ljr0429 Posted April 29, 2014 Posted April 29, 2014 I am working on a timesheet and have run into a snag, the timesheet works great when calculating AM to PM. But when i try to go PM to AM i get negative result any help on this issue would be greatly appreciated......Thx Lou
comment Posted April 29, 2014 Posted April 29, 2014 Add 24 hours to the duration when start time > end time.
Ljr0429 Posted April 29, 2014 Author Posted April 29, 2014 I have 4 fields StartTime, LunchOut, LunchIn, and EndTime tried adding 24 to the calculation i have but no go
comment Posted April 29, 2014 Posted April 29, 2014 I have 4 fields StartTime, LunchOut, LunchIn, and EndTime tried adding 24 to the calculation i have but no go Well, I said 24 hours, not 24. If your current calculation is something like = EndTime - StartTime change it to = EndTime - StartTime + Case ( StartTime > EndTime ; Time ( 24 ; 0 ; 0 ) ) or, if you prefer = EndTime - StartTime + 86400 * ( StartTime > EndTime )
Ljr0429 Posted April 29, 2014 Author Posted April 29, 2014 Thanks I will give this a try.....I greatly appreciate your time to answer my questions......Thx Lou
Recommended Posts
This topic is 3860 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now