Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mbc mbc is offline
external usenet poster
 
Posts: 8
Default Adding times on different worksheets in same file

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))

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Adding times on different worksheets in same file

I get 9, but try

=IF('Week 17'!AB3=0,1,MOD(I3-'Week 17'!AB3,1))*24

--
__________________________________
HTH

Bob

"MBC" wrote in message
...
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))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mbc mbc is offline
external usenet poster
 
Posts: 8
Default Adding times on different worksheets in same file

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))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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))



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mbc mbc is offline
external usenet poster
 
Posts: 8
Default Adding times on different worksheets in same file

Sorry Bob I should have said I3.Even then I still get a result of 7 if I3 is
left empty and ideally I would like it to read 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))



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mbc mbc is offline
external usenet poster
 
Posts: 8
Default Adding times on different worksheets in same file

It would be I3 which would be empty as this would signify a "rest period".

"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))

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Adding times on different worksheets in same file

=IF(OR('Week 17'!AB3=0,'Week 18'!I3=0),1,MOD(I3-'Week 17'!AB3,1))*24

--
__________________________________
HTH

Bob

"MBC" wrote in message
...
It would be I3 which would be empty as this would signify a "rest period".

"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))



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mbc mbc is offline
external usenet poster
 
Posts: 8
Default Adding times on different worksheets in same file

Thanks Bob, this worked. Much appreciated

"Bob Phillips" wrote:

I get 9, but try

=IF('Week 17'!AB3=0,1,MOD(I3-'Week 17'!AB3,1))*24

--
__________________________________
HTH

Bob

"MBC" wrote in message
...
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))




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Times LiAD Excel Worksheet Functions 7 September 10th 08 02:10 PM
Adding Times mudge55 Excel Discussion (Misc queries) 3 May 8th 08 09:49 PM
Help Please on adding times Champ Excel Discussion (Misc queries) 6 April 19th 07 06:10 PM
adding times again B Bear New Users to Excel 14 August 30th 06 09:58 AM
adding times Metalteck Excel Discussion (Misc queries) 1 September 2nd 05 08:48 PM


All times are GMT +1. The time now is 03:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"