+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting not working if number is a percentage

  1. #1
    Registered User
    Join Date
    02-05-2020
    Location
    Mobile, AL
    MS-Off Ver
    MS 2016
    Posts
    2

    Conditional formatting not working if number is a percentage

    I have a conditional format formula that works perfectly if the cell is a regular number, but if the cell is formatted as a percentage it does not work.

    =D27>=E27 GREEN

    =AND(D27<=E27-1,D27>E27*0.9) YELLOW

    =D27<E27*0.9 RED

    The formulas for GREEN and RED produce the desired result (regardless if cells are formatted as number or percentage), but YELLOW does not work. If I change the cell to a number (instead of a percentage), it works. If I format the cell as 0\% it works, but unfortunately it does not serve my purpose as I need to have 2 decimal places. When I formatted the cell as 0.00\% it did not work.

    Additional information is as follows:

    Cell D27 is Actual number, Cell E27 is Target number.
    If the Actual number is equal to or above the Target number, Cell F27 turns GREEN
    If the Actual number is less than Target but within 10%, Cell F27 turns YELLOW
    If the Actual number is less than Target by more than 10%, Cell F27 turns RED

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional formatting not working if number is a percentage

    How the cell is formatted should not affect your final result. Can you upload an example spreadsheet showing an percentage that is not working?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-05-2020
    Location
    Mobile, AL
    MS-Off Ver
    MS 2016
    Posts
    2

    Re: Conditional formatting not working if number is a percentage

    Thank you; I have uploaded an example spreadsheet as requested
    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)

Similar Threads

  1. Conditional Formatting - Percentage of Target
    By Barrera006 in forum Excel General
    Replies: 4
    Last Post: 12-21-2015, 04:57 PM
  2. [SOLVED] Conditional formatting on a percentage
    By sunrunner4kr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2013, 11:28 AM
  3. Replies: 0
    Last Post: 10-11-2012, 11:38 AM
  4. Conditional Number Formatting Not Working for Chart Value Labels
    By michael_watson in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-14-2012, 05:29 AM
  5. Working out a percentage if the number is above
    By Cmorgan in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 03-07-2012, 02:46 AM
  6. Conditional formatting percentage
    By philip32686 in forum Excel General
    Replies: 5
    Last Post: 09-19-2011, 09:22 PM
  7. Conditional formatting a percentage
    By Wyatt12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-22-2008, 12:23 PM

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