+ Reply to Thread
Results 1 to 6 of 6

Condtional Formatting: highlight MIN(s) but ignore blank cells

  1. #1
    Registered User
    Join Date
    06-15-2008
    Posts
    11

    Condtional Formatting: highlight MIN(s) but ignore blank cells

    Hi there. I hate coming here because I'm always only asking questions, never answering them. Nevertheless, it's become habit now because I've always received help here and always received the solution.

    I'm on Mac Office 08 and having trouble with a column of data that I want to apply a conditional format to:

    G5:G49 contains missed sales in single or double digit numerals, and would like to highlight the minimums but ignore the bulk of blank cells at the bottom (which are basically days that haven't passed yet/unpopulated data). I've tried both "cell equals" and "Formula" but regardless of what I try, I'll either get nothing highlighted or only the blank cells.

    I have one day with 0 missed sales, and have thus far been unable to get it highlighted.

    Thank you for any help you can offer.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Condtional Formatting: highlight MIN(s) but ignore blank cells

    Hi,

    How about this formula,

    =AND(NOT(ISBLANK(G5)),G5=MIN($G$5:$G$49))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Condtional Formatting: highlight MIN(s) but ignore blank cells

    Does this work for you?
    Asha

    I have used
    IF(A1=LARGE($A$1:$A$5,COUNTIF($A$1:$A$5,">0")),TRUE,FALSE)
    Attached Files Attached Files

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,074

    Re: Condtional Formatting: highlight MIN(s) but ignore blank cells

    @asha:

    As I understood 0 must be minimum if it's entered but not blank.
    See sweep solution.

    Also, CF works on TRUE/FALSE principle.

    So your code can be shortened to:

    =B1=LARGE($A$1:$A$5,COUNTIF($A$1:$A$5,">0"))

    No need for IF and TRUE/FALSE returning in this case.

    I hope this tip will help you in the challenges that comming
    Last edited by zbor; 09-24-2010 at 03:52 AM.
    Never use Merged Cells in Excel

  5. #5
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Condtional Formatting: highlight MIN(s) but ignore blank cells

    Thanks very much Zbor for the tip. I learn something everyday!
    Asha

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,074

    Re: Condtional Formatting: highlight MIN(s) but ignore blank cells

    Don't we all

+ 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