+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting based on % in other cell

  1. #1
    Forum Contributor
    Join Date
    07-05-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    162

    Conditional formatting based on % in other cell

    Hello,
    I want to color format a cell based on a percentage value in another cell but I just can't get my head around how to solve it. I've attached a file that explains it better.

    E.g.
    The formatting for A1 should be something like:
    If A2 is
    > +/- 10% RED
    +/- 6-10% YELLOW
    +/- 5% GREEN

    Any ideas on how to solve this?
    Conditional formatting based on %.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Conditional formatting based on % in other cell

    hi D-smoke. but you have nothing in A1 & A2. assuming you want to highlight A1 based on the % in J5, then select the range you want to apply to (say A1:A10)
    go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is:
    =ABS($J$5)>10%
    format as red

    repeat the steps but with this formula for yellow:
    =AND(ABS($J5)>5%,ABS($J5)<=10%)
    you don't have a range for above 5% to 6%, so i included it here.

    and for green, is it exactly 5%? for exact match, try:
    =ABS($J$5)=5%
    otherwise, use AND like i did for YELLOW

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    07-05-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    162

    Re: Conditional formatting based on % in other cell

    Awesome! This works perfectly!
    Thanks ever so much.

+ 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