+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting range of values

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    illinois
    MS-Off Ver
    2010
    Posts
    4

    Conditional Formatting range of values

    Hello! I am an Excel novice and any help is appreciated!

    I'm creating a spreadsheet to track goals for my team. I'm using conditional formatting to change the color of a cell based on a range of values rounded to two decimals. The problem I'm running into is that when you are on the edge of two ranges and it rounds up, the value on the backend (unrounded) is below the range. How do I get Conditional Formatting to recognize the rounded number instead of the backend value?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Conditional Formatting range of values

    Use a formula for the CF condition, like this:

    =ROUNDUP(A1,2)=value

    assuming it is cell A1 that the CF is applied to - put the appropriate value in there.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    illinois
    MS-Off Ver
    2010
    Posts
    4

    Re: Conditional Formatting range of values

    I think it does, just a follow up question. What happens when your value is a range?

    =ROUNDUP(A1,2)=VALUE
    =ROUNDUP(A1,2)=0.01-4.99?

  4. #4
    Registered User
    Join Date
    03-10-2015
    Location
    illinois
    MS-Off Ver
    2010
    Posts
    4

    Re: Conditional Formatting range of values

    Here's some more detail.

    I have 5 Ranges of Values with corresponding colors

    6.90-7.00 - Dark Green
    6.40-6.89 - Light Green
    6.10-6.39 - Yellow
    5.50-6.09 - Orange
    0.01-5.49 - Red

    Blank - No color (figured I solved this by making the bottom of the red range 0.01)

    I applied =ROUNDUP(A1,2)=0.01-4.99 formula to my conditional formatting for each range, but nothing changed color.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Conditional Formatting range of values

    You need to apply your conditions with a formula like this:

    =AND(ROUNDUP(A1,2)>=0.01,ROUNDUP(A1,2)<5.5)

    for red, and your next one would be:

    =AND(ROUNDUP(A1,2)>=5.5,ROUNDUP(A1,2)<6.1)

    for orange, and so on.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    03-10-2015
    Location
    illinois
    MS-Off Ver
    2010
    Posts
    4

    Re: Conditional Formatting range of values

    Thanks, that worked!!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Conditional Formatting range of values

    Glad to hear it.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 if in range of values: apply to column
    By marcopietro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2014, 02:34 PM
  2. Conditional formatting with range of values
    By australia01 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2014, 03:03 AM
  3. Replies: 5
    Last Post: 07-27-2014, 04:43 AM
  4. Conditional Formatting for whole range depending on cell values
    By ChrisGranco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 08:33 AM
  5. Replies: 4
    Last Post: 10-19-2013, 08:58 AM

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