+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting time with a range applied

  1. #1
    Registered User
    Join Date
    07-19-2016
    Location
    Midlands
    MS-Off Ver
    2010
    Posts
    13

    Conditional Formatting time with a range applied

    Hi all, im hoping you can help me solve this problem.

    Below are three problems im struggling to solve. Can you help?

    • Person 'A' has to hit a target of 02:30:00 weekly. Should they exceed the target but be within 10% - either side - this will display in GREEN. How can this be setup in the conditional formatting?

    • Person 'B' has to hit a target of 02:30:00 weekly. Should they exceed the 10% tolerance - either side - and post anything between 11% and 15% this will display in Orange.
    How can this be setup in the conditional formatting?

    • Person 'C' has to hit a target of 02:30:00 weekly. Should they exceed the tolerance by 16% and greater - either side - this will display in Red.

    How can this be setup in the conditional formatting?

    Just to note: the weekly target does change from one person to the next.

    Thanks all

    Andy

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Conditional Formatting time with a range applied

    Andy,

    try this:

    If A2 has the target time of 2:30:00

    And B2 has the actual time

    Then the conditional format rules in order are:

    =OR(B2<84%*A2,B2>116%*A2) ---> Fill red
    =OR(B2<=90%*A2,B2>=110%*A2) ---> Fill orange
    =AND(B2>90%*A2,B2<110%*A2) ---> Fill green.

    Cheers
    <-- If you're happy & you know it...click the star.:-)

  3. #3
    Registered User
    Join Date
    07-19-2016
    Location
    Midlands
    MS-Off Ver
    2010
    Posts
    13

    Re: Conditional Formatting time with a range applied

    Hi Amit, thanks for the mega fast reply, very much appreciated.

    It would appear to work apart from the RED formula for greater than 16%. Please see the image attached to see the colour applied based on the formula for Red.
    \1
    Attached Images Attached Images

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting time with a range applied

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    You say that the targets will change from week to week. Indicate where the targets for each person will be for the week.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Conditional Formatting time with a range applied

    Andy,

    one possible reason for this may be that your 'orange' rule is before the 'red' rule and it "stops if true".

    In that case, as soon as the 'orange' rule is true, it stops checking for the 'red' rule.

    As newdoverman suggested, it might be easier to diagnose the issue if you post the sheet instead of a screenshot.

    Cheers

  6. #6
    Registered User
    Join Date
    07-19-2016
    Location
    Midlands
    MS-Off Ver
    2010
    Posts
    13

    Re: Conditional Formatting time with a range applied

    Hi again and thanks for your help.

    I have moved the conditional formatting as mentioned from Amit which id completely overlooked so i do apologise. This seems to have fixed the problem but ive now inherited another lol.

    The conditional formatting appears to miss timings between percentage values so some times are going unnoticed.

    I have attached the file as requested to see if you can resolve my problem.

    [attach]http://www.excelforum.com/newattachment.php?do=manageattach[/attach]

    Thank you again

    Andy
    Attached Files Attached Files

  7. #7
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Conditional Formatting time with a range applied

    Andy,

    there are a bunch of things going wrong here:

    1. In C2, C3 and C4, the formats are based off the value of C2 only

    2. In C7, C8, C9, the formats are based off the value of C7 only

    3. Are your tolerance bands barriers at 10% and 15% (as written in the sheet) or 3% and 8% as is in the conditional formatting formula?

    4. And now for the big reveal! The reason your formula is not working (even after you fix all the stuff above), is that the barriers for orange and green should be the same. So for red use 92% and 108%. For orange use 97% and 103%. And the same for green: 97% and 103%.

    As you have set it up, the red and orange barriers are the same. Won't work. Get it?

    Cheers

  8. #8
    Registered User
    Join Date
    07-19-2016
    Location
    Midlands
    MS-Off Ver
    2010
    Posts
    13

    Re: Conditional Formatting time with a range applied

    Thank so much for looking at my attached file and discovering the problem was due to mistakes I made. Now you've explained the problem, im kicking myself for not recognising it myself. Done the changes suggested and everything is working spot on.

    Thank you very much, really glad I joined this forum.

    Andy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional formatting of one row applied to other rows
    By Daniel Tou in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2015, 10:20 AM
  2. [SOLVED] Conditional formatting if A1 in sheet1 is not = A1 in sheet2 applied to a range
    By Mattlawson in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-09-2015, 09:10 PM
  3. Replies: 11
    Last Post: 02-03-2015, 04:16 AM
  4. Replies: 1
    Last Post: 10-29-2014, 12:44 AM
  5. How to changing conditional formatting once applied
    By mgia0055 in forum Excel General
    Replies: 5
    Last Post: 10-13-2010, 08:15 AM
  6. [SOLVED] can conditional formatting be applied in more then three instance
    By Mary jane in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-21-2005, 12:10 AM
  7. How do I determine if conditional formatting is applied to an exc.
    By MarkTheNuke in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-18-2005, 10:06 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