+ Reply to Thread
Results 1 to 13 of 13

Highlight smallest cell in row

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Highlight smallest cell in row

    I would like a rule that is applied to the entire row; one in which the cell with the smallest number value is highlighted.

    I tried a conditional format, but it is being applied to all cells in the row (see attached).
    Attached Images Attached Images

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Highlight smallest cell in row

    2 things...
    1. make that <$B49
    2. post a sample workbook, not a pic

    Also, if B49 will not always be the smallest, try using MIN() or small()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Highlight smallest cell in row

    Thanks for the quick response, @FDibbins. I'm not certain how to use MIN() or small() in such a case.

    I have attached a sample workbook. In the sample, I would like the cell with the lowest value in row 2 to be highlighted, i.e. F2 (12000).

    The idea here is to have some viausl reference of the lowest cell value. If it's possible just to present that value in another cell, that would be okay. Something like...

    Lowest value in row 2: 12000
    Attached Files Attached Files
    Last edited by cableghost; 09-16-2014 at 01:39 PM.

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

    Re: Highlight smallest cell in row

    Select the row (or rows)
    New Rule>Use formula
    =B2=MIN($B2:$I2)
    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

  5. #5
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Highlight smallest cell in row

    Thanks @ChemistB, though that formula highlights the cell prior to the lowest valued cell.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Highlight smallest cell in row

    Worked fine for me. Did you use the range EXCLUDING the row headings (column A)?

  7. #7
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Highlight smallest cell in row

    Quote Originally Posted by FDibbins View Post
    Worked fine for me. Did you use the range EXCLUDING the row headings (column A)?
    I don't see an option to specifically exclude columns in Conditional Formatting...where is this setting?

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Highlight smallest cell in row

    It's not a setting, its under the "applies to" window, to the right of the rule. Make sure the range there starts in B

  9. #9
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: Highlight smallest cell in row

    sample_book cableghost.xlsOk I am no expert but what worked for me was to highlight the entire row, select Top/Bottom Rules in conditional formatting. Then select Bottom 10 Items and change the number in the scroll box to 1. That will quickly find the lowest cell in the row.
    Last edited by lornaerland; 09-16-2014 at 02:39 PM.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Highlight smallest cell in row

    Another good option, lornaerland

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

    Re: Highlight smallest cell in row

    Yep, your way works.

    Why my way probably didn't work for you, you probably selected the entire row. If that's the case, then the formula would be
    =B1=MIN($B1:$ZZ2) or something like that. The single cell referred to should be the active cell of the range you selected.

  12. #12
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Highlight smallest cell in row

    Thank you all.

  13. #13
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Highlight smallest cell in row

    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Adding smallest value + second smallest value until exceeding a specific value
    By ployo60 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 07:25 AM
  2. [SOLVED] FINDING CELL CORRESPONDING TO Kth SMALLEST IN A ARRAY
    By Alexander_Golinsky in forum Excel General
    Replies: 2
    Last Post: 07-27-2012, 08:52 AM
  3. Highlight smallest value in range
    By uplink600 in forum Excel General
    Replies: 2
    Last Post: 02-19-2010, 05:09 AM
  4. [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
  5. Replies: 5
    Last Post: 05-27-2005, 02:05 PM

Tags for this Thread

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