+ Reply to Thread
Results 1 to 8 of 8

highlight duplicate rows

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    highlight duplicate rows

    Hello,

    I have a list of data sorted alphabetically A-Z on col B, I need a macro that will help me go tho col B and look for duplicate entries and highlighted the all duplicate rows.

    Ex:
    OFAJNVF156
    JNHVOIO985
    FDKJAKDF45
    FDKJAKDF45

    ODFFJ565
    IUNIDF666
    UYF999
    UYF999
    UYF999


    Thanks,
    VB

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: highlight duplicate rows

    See if help

    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,038

    Re: highlight duplicate rows

    You could use Conditional Formatting to do this.

    https://support.office.com/en-US/art...C-65D913033D18



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: highlight duplicate rows

    When I look at the values for the following possible arguments for the End method with MsgBox(xlToLeft), MsgBox(xlToRight), ..., I get:
    xlToLeft = -4159
    xlToRight = -4161
    xlUp = -4162
    xlDown = -4121

    ...however, when I use 3 for an argument of the End method: End(3), as ikboy used above, I get the same results if I had used: End(xlUp).

    Please explain.
    <---If my answer helped, please click *

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,038

    Re: highlight duplicate rows

    @joe31623:

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  6. #6
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: highlight duplicate rows

    TMS,

    Ok, Thanks for bringing that to my attention. Please feel free to delete this post and my last post.

  7. #7
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: highlight duplicate rows

    Thanks, for the duplicated rows, I also want the program to go to col M and combine all the entries into one entry of the first one.
    ex:
    col M
    TALBOT
    GREENE
    TERRELL
    JONES

    become
    TALBOT, GREENE, TERRELL, JONES
    GREENE
    TERRELL
    JONES

    Thanks,
    VB

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,038

    Re: highlight duplicate rows

    I would suggest this is a new question and warrants a new thread. It's also going to be worth your while posting a sample workbook with some typical data.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Highlight duplicate numbers in rows and coloumns from a different range.
    By dazd1970 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-21-2013, 09:23 AM
  2. [SOLVED] Highlight Duplicate Rows Based on Multiple Criteria
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2013, 09:39 AM
  3. [SOLVED] highlight duplicate rows using textbox
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2013, 12:53 PM
  4. Highlight and count duplicate rows
    By dmc31 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2012, 01:37 PM
  5. Issues with using COUNTIFS to highlight duplicate rows
    By Frank Bugeja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2011, 09:00 PM
  6. Highlight duplicate rows without helper column
    By tone640 in forum Excel General
    Replies: 5
    Last Post: 08-23-2011, 08:21 AM
  7. Highlight rows based on Duplicate with conditions
    By ypnOz in forum Excel General
    Replies: 5
    Last Post: 12-28-2010, 09:50 AM
  8. highlight duplicate rows
    By dan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2010, 04:09 AM

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