+ Reply to Thread
Results 1 to 3 of 3

Eliminating Duplicate Entries (more complicated then it sounds)

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    1

    Eliminating Duplicate Entries (more complicated then it sounds)

    Hi Everyone,

    I need to design a filter to be used in the following way:

    A B
    1234 Edgington
    1234 Paramount
    0756 Dummy


    I have two columns of Data that I want to primarily focus on in this filter. As you can see in column A is a generic reference number and in column B is a name associated with that reference number. What I want to do is eliminate the duplicate entry associated with the same number referenced in Column A. In this case I would want to have the bottom entry associated with the same generic number removed. I was thinking is there some kind of 'if' logic that I could use. Some thing like if A1 and A2 are equal and B1 and B2 are not equal then delete line 2. Also, I need the filter to not delete items which have different reference numbers. So included in there should be something like if A2 and A3 are not equal no not delete A3.

    Hopefully that made sense. Any help on this is greatly appreciated as I am a relative new comer to working seriously with Macro's.

    Thanks

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Eliminating Duplicate Entries (more complicated then it sounds)

    Use this code -
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Eliminating Duplicate Entries (more complicated then it sounds)

    Hello Mander19,

    Welcome to the Forum!

    If you have a lot of data, say several thousand rows or more, this macro will do it very quickly.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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