Results 1 to 15 of 15

time difference - conditional formatting and fix

Threaded View

  1. #15
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: time difference - conditional formatting and fix

    Thanks, this one is worksbetter, I just had to change It to :

    =IF(OR(B3=0,C3=0),0,C3-B3+(C3<B3))
    But now I have problem with CF formula. I changed It to :

    =10/24>=IF($C3>$D3,1,0)+$D3-$C3
    because 11 hours between times is still allowed, but not 10 hours.

    Problem now are night shifts. If I select for example a 18:00-06:00 on Sunday, CF should immediately highlight If I try to select start time cell value on Monday that is less than 11 hours after that time interval on Sunday. Current Cf does that too, but start time cell value has to be larger than end time of previous day. However, It highlights properly for 10 hours If value is higher.

    I guess like I'm not making myself clear, so please take a look at attached sample, and focus only on cell C3 & D3. I set solution like a night shift on Sunday, and day shift on Monday was to be entered. That can be allowed only If 11 hours time difference between shifts.

    Can this be even fixed ??


    Thanks for all your help !!
    Attached Files Attached Files
    Last edited by Lukael; 05-06-2014 at 11:17 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. conditional formatting and difference in time
    By Time to Learn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2013, 10:37 PM
  2. Replies: 2
    Last Post: 02-04-2013, 02:31 PM
  3. Excel 2007 : Time Formatting and getting a % difference
    By jesz1987 in forum Excel General
    Replies: 4
    Last Post: 12-16-2010, 05:51 AM
  4. Conditional Formatting Difference
    By excel328 in forum Excel General
    Replies: 2
    Last Post: 07-28-2010, 01:33 AM
  5. Conditional Formatting - Difference between dates
    By Gohan51D in forum Excel General
    Replies: 5
    Last Post: 03-14-2006, 06:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1