+ Reply to Thread
Results 1 to 5 of 5

Duplicates Conditional Formatting

  1. #1
    Forum Contributor
    Join Date
    12-17-2008
    Location
    Vernon, CT
    Posts
    132

    Question Duplicates Conditional Formatting

    I need the cells in a column (Range) to highlight if they are duplicate numbers only and ignore any text. I tried =countif(A2:A10,A2)>1 and then formatted it to highlight red just to see it highlight duplicates and all it did was highlight every cell within that range red. So what formula would I use in conditional formatting to highlight only numeric duplicates?


    Thanks,
    Jay
    Last edited by jayclinton; 12-20-2010 at 07:42 PM.

  2. #2
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    142

    Re: Duplicates Conditional Formatting

    Hi,

    Try this formula..
    =IF(MAX(COUNTIF(F5691:F7688,F5691:F7688))>1,"Duplicates","No Duplicates")

    The range inside the brackets refers the range you need to check for dupes.

    shad

  3. #3
    Forum Guru teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,364

    Re: Duplicates Conditional Formatting

    Jay,

    any chance you could post a data sample in an Excel workbook to go with your formula? Otherwise, how are we to determine what the result should be?

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Duplicates Conditional Formatting

    =and(isnumber(a2),countif($a$2:$a$10,a2)>1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    12-17-2008
    Location
    Vernon, CT
    Posts
    132

    Re: Duplicates Conditional Formatting

    Quote Originally Posted by martindwilson View Post
    =and(isnumber(a2),countif($a$2:$a$10,a2)>1)
    Awesome! Worked perfectly. Thanks!

+ 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