View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Luke M Luke M is offline
external usenet poster
 
Posts: 2,722
Default Figuring 24 Hours Per Day

As I don't know what the rest of your data looks like, this is merely a best
guess. But if you're only concern is with I8 and H8, you could change that
part of formula to:
(I8-IF(H8<I8,H8+1,H8)

This would add in the extra 24 hours needed. One thing though, why are you
subtracting H8 (end time) from I8 (start time)? Wouldn't that result in a
negative amount of time?
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jeff" wrote:

I am laying out a time sheet that has shop time, travel time, on site time,
break time, and travel time back to shop. I have this formula:

=(IF(C8="","",(E8-D8)+(G8-F8)+(M8-L8)+(I8-H8)-(K8-J8)))

It works great if you work during the day time, but if you work past
midnight it won't figure the hours in I8 (start time) and H8 (end time).

Can someone please help me out?

Jeff