+ Reply to Thread
Results 1 to 11 of 11

How to Highlight 6 smallest number in a range using conditional format

  1. #1
    Registered User
    Join Date
    05-14-2008
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    57

    How to Highlight 6 smallest number in a range using conditional format

    Hi there,

    Can you tell me how to run the formula under conditional format where I can highlight the 6 smallest number in a range, this include zero.

    174 195 206
    173 181 188
    210 195 211
    211 182 192
    0 0 0


    Kindly advice.

    Cheers
    Raymond

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Highlight 6 smallest number in a range using conditional format

    The 6 smallest numbers or the 6th smallest number???
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-14-2008
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    57

    Re: How to Highlight 6 smallest number in a range using conditional format

    Hi Ali,

    6 smallest number:

    174 195 206
    173 181 188
    210 195 211
    211 182 192
    0 0 0

    so the following number will be highlighted - 0,0,0,173,174,181

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to Highlight 6 smallest number in a range using conditional format

    What version of Excel are you using?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to Highlight 6 smallest number in a range using conditional format

    I cannot post for some reason.

    use a formula that selects every number smaller than the 7th smallest, use the small function.
    Last edited by mehmetcik; 12-10-2016 at 12:46 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to Highlight 6 smallest number in a range using conditional format

    Conditional formatting dialog - format only cells that contain - cell value - less than - =SMALL($A$1:$C$5,7)

    where $A$1:$C$5 is your array.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to Highlight 6 smallest number in a range using conditional format

    With a helper column in E1:E6
    enter formula in E1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then got to Conditional Formatting and choose "Use a formoula..." and enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    apply desired color and make sure it applies to: =$A$1:$C$5
    v A B C D E
    1 174 195 206 0
    2 173 181 188 0
    3 210 195 211 0
    4 211 182 192 173
    5 0 0 0 174
    6 181
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to Highlight 6 smallest number in a range using conditional format

    Assuming you're using Excel 2007 or later...

    Let's assume the numbers are in the range A2:C6.

    Select the ENTIRE range A2:C6 starting from cell A2.
    Cell A2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =A2<=SMALL($A$2:$C$6,6)

    Click the Format button
    Select the desired style(s)
    OK out

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to Highlight 6 smallest number in a range using conditional format

    This can also be done without any formulas:
    Highlight range A1:C5
    Go to Conditional Formatting Rules Manager
    Click on New Formatting Rule and select Format only top or bottom ranked values
    Change Top to Bottom and adjust values to 6 and apply desired color
    Click Ok

  10. #10
    Registered User
    Join Date
    05-14-2008
    Location
    Hong Kong
    MS-Off Ver
    2019
    Posts
    57

    Re: How to Highlight 6 smallest number in a range using conditional format

    Thank you all - it works now. I use the conditional Formatting Rules Manager.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to Highlight 6 smallest number in a range using conditional format

    You're welcome. We appreciate the feedback!

+ 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. [SOLVED] conditional format to highlight values out of range
    By Excel_learner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2015, 10:34 PM
  2. [SOLVED] Conditional Format to Highlight Anything That is Not a Whole Number
    By jlworden in forum Excel General
    Replies: 4
    Last Post: 02-24-2014, 05:05 PM
  3. Replies: 6
    Last Post: 06-29-2013, 03:56 PM
  4. conditional format smallest number
    By grizzly6969 in forum Excel General
    Replies: 4
    Last Post: 07-13-2010, 02:50 AM
  5. Highlight smallest value in range
    By uplink600 in forum Excel General
    Replies: 2
    Last Post: 02-19-2010, 05:09 AM
  6. [SOLVED] How to highlight the smallest number other than zero
    By Kenny in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-14-2006, 02:45 AM
  7. highlight row :Conditional Format to highlight entrire Row
    By shital shah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-25-2005, 11:05 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