+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting highlights same number even if they are Positive/Negative

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Conditional formatting highlights same number even if they are Positive/Negative

    HI.

    Can I use Conditional formatting (highlights duplicate values) but highlight the number even if the number is an Positive or Negative number.

    It must highlight the number if it’s -300 or 300 in both instances.

    Thank you
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-29-2013
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Conditional formatting highlights same number even if they are Positive/Negative

    A possible workaround is to use a AbsoluteValues Column
    Please Login or Register  to view this content.
    and then auto-fill it.
    Conditional formatting will work on it.

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

    Re: Conditional formatting highlights same number even if they are Positive/Negative

    Going to conditional Formatting> Use Formula

    =AND(ISNUMBER(E3),SUMPRODUCT(--(ABS($E$3:$E$13)=ABS(E3)))>1)
    Does that work for you?
    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

  4. #4
    Registered User
    Join Date
    02-27-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Conditional formatting highlights same number even if they are Positive/Negative

    Thank you so much that will work

  5. #5
    Registered User
    Join Date
    02-27-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Conditional formatting highlights same number even if they are Positive/Negative

    Quote Originally Posted by ChemistB View Post
    Going to conditional Formatting> Use Formula

    =AND(ISNUMBER(E3),SUMPRODUCT(--(ABS($E$3:$E$13)=ABS(E3)))>1)
    Does that work for you?
    what if I want to look at 3 column's at the same time?

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

    Re: Conditional formatting highlights same number even if they are Positive/Negative

    Just modify the sumproduct to include the entire range
    =AND(ISNUMBER(E3),SUMPRODUCT(--(ABS($E$3:$G$13)=ABS(E3)))>1)
    Where E3 is the first cell in your range and G13 is the last cell in your range.

  7. #7
    Registered User
    Join Date
    02-27-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Conditional formatting highlights same number even if they are Positive/Negative

    Awesome thank you so much!

+ 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