+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting highlight criteria

  1. #1
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Conditional formatting highlight criteria

    How can I use conditional formatting to highlight 3 highest (or lowest) values within a range of values?
    Last edited by mcmuney; 05-23-2011 at 06:38 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Conditional formatting highlight criteria

    Use the Large Function 3 times, maybe. Or the Small Function?

    Highest? Lowest? Range of values? What version of Excel? Mac or Windows?

    Do you not think it would be helpful to provide a little more information and/or a sample workbook?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional formatting highlight criteria

    Try using for Cells that contain - greater than or equal to - =LARGE($A$1:$A$10,3)
    for the 3 largest values. (modify the range in the formula)

  4. #4
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Re: Conditional formatting highlight criteria

    The large formula would work, but only if I wanted to show the number in a different cell. But I want the actual cells highlighted. Here's an example (I'm using Excel 2007):

    In this example, I'd want the 3 lowest values highlighted (cells a1, a2 and a6 should be highlighted as a result)

    a1 -5
    a2 -1
    a3 3
    a4 0
    a5 2
    a6 -7

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Conditional formatting highlight criteria

    Please post a sample workbook indicating the cells with the values and the cells that need to be highlighted.

    Regards

  6. #6
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Re: Conditional formatting highlight criteria

    See attached sample. Please note that the highlights need to happen on the actual values and not in a different using the LARGE formula. Thanks.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Conditional formatting highlight criteria

    The condition is:

    =OR($C2=SMALL($C$2:$C$12,1),$C2=SMALL($C$2:$C$12,2),$C2=SMALL($C$2:$C$12,3))

    Much easier when you can see it ;-)

    Regards
    Attached Files Attached Files
    Last edited by TMS; 05-23-2011 at 05:23 PM.

  8. #8
    Forum Contributor
    Join Date
    01-21-2011
    Location
    London,UK
    MS-Off Ver
    Excel 2007
    Posts
    241

    Re: Conditional formatting highlight criteria

    Hello Mcmuney.
    Its very easy to do it in Conditiona Formatting.here is what you do;
    at home ribbon>con.Form.>Top/Bottom Rules>Top 10 or Bottom 10 then change 10 to req.number in your case "3" choose which colour then click OK.Done.
    I hope this solve your problem.see attachment.
    Sem.
    Attached Files Attached Files

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Conditional formatting highlight criteria

    @sem: I've just got to try out all these different options! ;-)

  10. #10
    Forum Contributor
    Join Date
    07-16-2008
    Location
    USA
    Posts
    142

    Re: Conditional formatting highlight criteria

    Wow! Multiple solutions.

    Thanks guys!

+ 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