+ Reply to Thread
Results 1 to 7 of 7

Highlight duplicate cells in next column...

  1. #1
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33

    Highlight duplicate cells in next column...

    Column A has a list of Entity ID for each customer.
    Column B has a list of Entity ID's in multiple instance for how many service appointments they have.

    So in Office 2007, I can go to - conditional formatting -highlight cells - equal to. BUT, in only lets me select once cell in Column A to match in Column B.

    I need it to look for all the numbers listed in Column A, and Highlight all the matching numbers in column B.

    Ive thought about putting the ID's all in one column, and use conditional formatting to find unique, but since some people have two service calls, they dont come back as unique, even though that customer is unique since they dont match my list.

    Attached is a sample sheet. The list will be very large so I cant go one by one.

    Thanks for the help!
    Attached Files Attached Files

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Conditionaly format B2 to the custom formula

    =ISNUMBER(MATCH(B2,$A:$A,0))

    copy this to the rest of column B and every entry in column B that is also in column A will be highlighted.
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33
    Thanks! This worked great, BUT, I wanted to use it so I could right click on the Cell, go to Sort, then "Put Selected Cell Color on Top".

    This way I could delete all the non-highlighted entries. However, this option isnt working? Any ideas?

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Color that is the result of Conditional formatting doesn't show up the way that normal coloring of a cell does (I'm not familiar with the quirks of 2007 color sorting.)

    What rows do you want to delete? A macro could be written to do that directly without the detour into coloring cells.

  5. #5
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33
    Ok. I have a revised list which should make things easier. This list is before I used a count to see how many times a client was in for service.

    I just need to keep all the people that match column A, and delete all the people that dont match.

    Attached is a new sample. Thanks for the help on this.
    Attached Files Attached Files

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    I think this will do it.
    Please Login or Register  to view this content.
    See attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-20-2007
    Location
    Menlo Park, CA
    MS-Off Ver
    Office 2019 Pro Plus
    Posts
    33
    This seems to work perfectly! I will keep you updated if I run into any hitches. Thank you so much! I wish there was some knowledge I could offer you. Thanks again.

+ 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