+ Reply to Thread
Results 1 to 7 of 7

How to change the cell shade based on a percentage criteria?

  1. #1
    Registered User
    Join Date
    10-22-2011
    Location
    Maidenhead, UK
    MS-Off Ver
    Excel 2003
    Posts
    28

    How to change the cell shade based on a percentage criteria?

    Hi,

    How do i change the shade of a cell based on a percentage criteria?

    For example:
    • *The target is 100
      *The actual score is 90 (10% less), this will be shaded orange
      *or the actual score is 84 OR LESS (16% or more), this will be shaded red
      *or teh actual score is 91 or higher (including 101 and above)(90% or more), this will be shaded green.

    The formula or code cannot state these number, they are only example numbers. The target will be in, lets say, A1 and the actual will appear in A2. I need A2 to change its cell colour.

    The cells that need shading will be based on formulas.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to change the cell shade based on a percentage criteria?

    Use Conditional formating with 3 conditions.

  3. #3
    Registered User
    Join Date
    09-28-2011
    Location
    Ligonier, IN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How to change the cell shade based on a percentage criteria?

    If target value is in cell A1, and the cell to be formatted is B1:
    Shade cell B1 red
    For B1, use conditional formatting. Criteria are (both type "formula is"):
    condition 1: =B1/$A$1>.9 this condtion results in green shade
    condition 2: =B1/$A$1>.83 this condition reults in orange shade.

  4. #4
    Registered User
    Join Date
    10-22-2011
    Location
    Maidenhead, UK
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: How to change the cell shade based on a percentage criteria?

    Hi,

    I am still struggling to get this to work. I dont know why but i cant seem to find anywhere that lets me put a formula in. Or when it does it doesnt seem to be the right formula.

    I am using Excel 2007 if thats any help?

    Thanks.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to change the cell shade based on a percentage criteria?

    Conditional Formatting -> New Rule -> Use a formula ....
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    10-22-2011
    Location
    Maidenhead, UK
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: How to change the cell shade based on a percentage criteria?

    ^I've just been trying this and it still doesnt work.

    I think it is because I am using negative numbers so division wont take it down to 0.??.

    Any other suggestions on how to highlight cell colour based on percentage difference to a target number?

  7. #7
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to change the cell shade based on a percentage criteria?

    Look at the attached file which contains conditional formating you can modify to suit your needs.
    Regards
    Attached Files Attached Files

+ 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