+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting with a % tolerance

Hybrid View

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    72

    Conditional formatting with a % tolerance

    Good afternoon all. I hope Friday is treating you well.

    I have attached a sample of a workbook. It's a standard RAG table showing a baseline for "clearance times" of incidents, with one month's results RAG'ged to that baseline. What I'm trying to work out is how I do the following:

    Green for LESS than the baseline
    Red for MORE than the baseline
    Amber for 5% EITHER SIDE of the baseline, whether that's 5% more or 5% less.

    I've tried to run various formulae in the conditional formatting window but failed miserably.

    Assistance will be met with my sincere best wishes for the bank holiday weekend and the promise of a beer if I ever meet you, however unlikely that seems.
    Attached Files Attached Files
    Last edited by Redder Lurtz; 08-28-2009 at 10:04 AM. Reason: Solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional formatting with a % tolerance

    Having highlighted C2:C13 your three formula based rules would be:

    1: RED
    =AND(ISNUMBER($C2),$C2>$B2*1.05)
    
    2: GREEN
    =AND(ISNUMBER($C2),$C2<$B2*0.95)
    
    3: AMBER
    =ISNUMBER($C2)

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting with a % tolerance

    Select C2:C13 and invoke CF...

    1. Cell Value Is >> Between >> =$B2-$B2*0.05 and =$B2+$B2*0.05

    Click Format and choose Amber... click Ok

    Click Add

    2. Cell Value Is >> Less Than >> =$B2

    Click Format and choose Green... clck Ok

    Click Add

    3. Cell Value Is >> Greater Than >> =$B2

    Click Format and choose Red.. click Ok

    Click Ok
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    08-25-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Conditional formatting with a % tolerance

    *kicks self*

    Marvellous stuff. Best wishes for the weekend and feel free to enjoy a beer on me.

  5. #5
    Registered User
    Join Date
    08-25-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Conditional formatting with a % tolerance

    Sorry to bother again chaps, but which dollar sign do I need to delete in the following so that I can copy>paste special>formats to subsequent columns?

    Thanks again

    RL
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional formatting with a % tolerance

    The references to $C should become C ... ie relative, $B should remain as this column is fixed for all others (ie all refer to B for evaluation).

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting with a % tolerance

    Only from the references to column C.. e.g $C2 should become C2

    If you use my version, no changes required when copy/paste

  8. #8
    Registered User
    Join Date
    08-25-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Conditional formatting with a % tolerance

    Quote Originally Posted by NBVC View Post
    Only from the references to column C.. e.g $C2 should become C2

    If you use my version, no changes required when copy/paste
    You're right. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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