+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting: Identify if negative number exists.

  1. #1
    Registered User
    Join Date
    04-21-2008
    Posts
    10

    Question Conditional Formatting: Identify if negative number exists.

    I'm fairly knowledgeable with conditional formatting but today I've run across something that has me stumped.

    I'm trying to find the formula to have a cell highlighted if any one cell in a column is a negative number.

    Example
    A1 will be our cell with conditional formatting, and should turn red if any cell in B1 - B5 is a negative number
    B1 - B5 will be a series of numbers.

    I have tried the following:
    $Sheet1.$B$1:$B$5<0
    ($Sheet1.$B$1:$B$5)<0
    IF($Sheet1.$B$1:$B$5)<0

    .. am I even close?

    Thanks for your time.

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Conditional Formatting: Identify if negative number exists.

    just highlight the cells, click conditional formatting, one of the options is "Highlight Cell Rules" then "Less Than"

    If you want to use a formula all you need is the <0 and then make sure it applies to the right array.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Conditional Formatting: Identify if negative number exists.

    In Cell A1 in conditional formatting (CF) rules

    =MIN($B$1:$B$5)<0
    format red

    or

    =COUNTIF($B$1:$B$5,"<"&0)
    format red
    Last edited by Ace_XL; 11-29-2012 at 12:12 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Conditional Formatting: Identify if negative number exists.

    Try this
    =(COUNT(B1:B5)<>COUNTIF(B1:B5,">0"))

    If you wanted to do an entire column
    =(COUNT(B:B)<>COUNTIF(B:B,">0"))
    Click on star (*) below if this helps

  5. #5
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Conditional Formatting: Identify if negative number exists.

    i misread the request... thanks others.

  6. #6
    Registered User
    Join Date
    04-21-2008
    Posts
    10

    Re: Conditional Formatting: Identify if negative number exists.

    Quote Originally Posted by Ace_XL View Post
    In Cell A1 in conditional formatting (CF) rules

    =MIN($B$1:$B$5)<0
    format red

    or

    =COUNTIF($B$1:$B$5,"<"&0)
    format red

    Worked perfectly. Thanks

    And thanks to the others that offered alternate tips as well.

+ 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