+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting a percentage

  1. #1
    Registered User
    Join Date
    10-20-2008
    Location
    Pennsylvania
    Posts
    28

    Conditional formatting a percentage

    I have a spreadsheet that keeps track of percentages and based on the percentage number at the bottom of the spreadsheet, I would like to have the appropriate box colored in on the sheet. If you open the attachment you'll see what the sheet looks like. I think a formula in conditional formatting will need to be entered.
    Attached Files Attached Files
    Last edited by Wyatt12; 12-22-2008 at 01:27 PM. Reason: Solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Click on cell C10 ad remove the Fill color you placed there.

    Then click FORMAT > CONDITIONAL FORMATTING. Set the Condition1 to
    Formula Is: =AND(C$14>=$A10,C$14<$A9) then click FORMAT and set your background pattern color.

    Now copy that cell up and over.
    Last edited by JBeaucaire; 12-22-2008 at 10:41 AM. Reason: Edited $ symbols so formula will copy to the right properly.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Sorry, then click on Cell C1 and use THIS formula for the conditional format since there is no range above it:

    =C$14>=$A1

    Copy that cell across row 1 only.

    NOTE: you could use this formula INSTEAD for the whole chart, and it will result in a "thermometer" effect, so the cells will light up up to the correct cell. Looks cool, too.
    Attached Files Attached Files
    Last edited by JBeaucaire; 12-22-2008 at 10:44 AM. Reason: Added sample workbook

  4. #4
    Registered User
    Join Date
    10-20-2008
    Location
    Pennsylvania
    Posts
    28

    Smile

    Thanks JBeaucaire, it works well. Just one other concern for the cells that have no data why does it highlight those cells also. Is there any additional function that would eliminate this from happening?

    Thanks

    Wyatt 12:

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Yeah, sorry I didn't notice that, although technically you DID label row ten 0% and blank=0%...but I know what you mean.

    Highlight C10 and change the Conditional Format to:

    =C$14>$A10

    Copy that cell across row 10 only.

    ==============
    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]
    Last edited by JBeaucaire; 12-22-2008 at 12:30 PM.

+ 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