Prev Previous Post   Next Post Next
  #1   Report Post  
Kevin
 
Posts: n/a
Default formula problem

Hi
I have the following formula that excludes break times from an overall
running time


Column B contains the start time of a stopage
Column c contains the end time of a stopage
column k holds the start times of breaks
column L holds the end time of breaks
column B column C column K column L
9:00:00 9:20:00 09:00:00 09:20:00
12:00:00 12:30:00 12:00:00 12:30:00
14:00:00 14:17:00 14:00:00 14:17:00

=60*24*((C2-B2)-IF(AND(C2=$K$2,C2<=$L$2),C2-$K$2,0)-IF(AND(B2=$K$2,B2<=$L$2),$L$2-B2,0)-IF(AND(B2<=$K$2,C2=$L$2),$L$2-$K$2,0)-IF(AND(C2=$K$3,C2<=$L$3),C2-$K$3)-IF(AND(B2=$K$3,B2<=$L$3),$L$3-B2,0)-IF(AND(B2<=$K$3,C2=$L$3),$L$3-$K$3,0)-IF(AND(C2=$K$4,C2<=$L$4),C2-$K$4)-IF(AND(B2$K$4,B2<=$L$4),$L$4-B2,0)-IF(AND(B2<=$K$4,C2=$L$4),$L$4-$K$4,0))
Problem is this formula is returning wrong result on first break
i.e result is -40
however change the end time in column c to 9:30:00 the result is -10
if i change the start break time to 8:59:00 the result is 11


thanks in advance
kevin
 
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
Problem with Array Formulas and ISNUMBER Henrik Excel Worksheet Functions 1 February 10th 05 12:31 AM
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
Need a formula for this problem Trying to excel in life but need help Excel Worksheet Functions 1 January 12th 05 11:05 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


All times are GMT +1. The time now is 02:13 PM.

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

About Us

"It's about Microsoft Excel"