View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default Adding times on different worksheets in same file

Where does I10 come into it? AB3 is the start cell and if that is zero it
returns 24.

--
__________________________________
HTH

Bob

"MBC" wrote in message
...
Thanks Bob that worked however where my start time cell ref I10 is empty
it
returns 7 as the answer. Is there any way I can get it to return 24?

"MBC" wrote:

I am trying to work out the "shift Gap"(Rest time) between two shifts
which
are on different worksheets in the same file. Worksheet 17 cell ref AB3
contains my finish
time of 17:00 and worksheet 18 cell ref I10 contains my shift start time
of
8:00. The answer is 15 but the formula I am using gives me an answer of
17?.
Can't see where I am going wrong.
=IF('Week 17'!AB3=0,24,IF('Week 17'!AB3I3,('Week
17'!AB3-I3)*24,24-(I3-'Week 17'!AB3)*24))