+ Reply to Thread
Results 1 to 4 of 4

removing duplicates only within duplicates on another column

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    america, usa
    MS-Off Ver
    Excel 2007
    Posts
    29

    removing duplicates only within duplicates on another column

    I am trying to remove duplicates for one column, but only if the employee name is different on an adjacent column. So a job number that is duplicated between 2+ employees would only be removed if it was a duplicate for each individual employee. Duplicates are kept if they are adjacent to different employees Example:
    Capture.PNG
    I am trying to calculate an average based on distinct job numbers per employee, but regular sumproduct/countif formulas to count the distinct jobs are running too slowly because of the amount of data. I am hoping to copy the original job numbers and other relevant information to a new sheet, remove the duplicates, and calculate the average based on that. Any help is greatly appreciated.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,881

    Re: removing duplicates only within duplicates on another column

    Supposing data starts in Range A1.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    07-06-2011
    Location
    america, usa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: removing duplicates only within duplicates on another column

    Thanks, works perfectly!

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,881

    Re: removing duplicates only within duplicates on another column

    You're welcome and thanks for adding rep points.

+ 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. Remove duplicates function not removing duplicates
    By Berilium2 in forum Excel General
    Replies: 3
    Last Post: 04-01-2015, 06:55 AM
  2. [SOLVED] Removing duplicates with rules in another column
    By guy13 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2014, 07:47 AM
  3. Removing duplicates from 2 Column Listbox
    By pratyathedon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 07:39 AM
  4. [SOLVED] Removing Duplicates Entries from each column with a for loop.
    By TonyM-2010 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2013, 10:28 AM
  5. Replies: 6
    Last Post: 03-29-2012, 12:16 AM
  6. Replies: 4
    Last Post: 09-05-2011, 01:06 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