+ Reply to Thread
Results 1 to 6 of 6

help with duplicated rows

  1. #1
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    help with duplicated rows

    Can someone assist me with highlighting rows that are duplicated on a spread sheet? It will validate one column and if the contents are dulplicated then the entire row A - E should be highlighted. I searched for a solution for this but most people are suggesting conditional formatting, i dont want to use that based on how I want the program to function.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: help with duplicated rows

    Hi kmakjop,

    After you've identified the duplicate, using r for the duplicate's row - you could write this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: help with duplicated rows

    Thanks xladept but I am trying to get assistance with finding the duplicates, not just how to highlight them.

    Quote Originally Posted by xladept View Post
    Hi kmakjop,

    After you've identified the duplicate, using r for the duplicate's row - you could write this:

    Please Login or Register  to view this content.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: help with duplicated rows

    do you have a sample workbook to show us?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: help with duplicated rows

    Ok after searching and experimenting i came up with a code to highlight duplicated rows on a sheet. However it’s only highlighting the first row of the duplication. How can i get it to highlight all the occurrences in the column it’s checking through? I would prefer it highlighting all the occurrences or at least the last occurrences.

    Below is the code i came up with, kindly assist with the modification if you can please:


    Please Login or Register  to view this content.

  6. #6
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: help with duplicated rows

    Just amending that code,
    If all your columns and rows are correct this should work.

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

+ 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