+ Reply to Thread
Results 1 to 7 of 7

Remove duplicates based on multiple criteria

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    TX, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Remove duplicates based on multiple criteria

    Hello Guys,

    I am stumped on how to do this and am hoping that someone can help.

    I have a complex line number in Column C and the length of the line in Column S.

    If the line number is a duplicate I need to only keep the line with the longest length.

    Thanks for the help.

  2. #2
    Registered User
    Join Date
    12-16-2014
    Location
    Amsterdam, Nederland
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: Remove duplicates based on multiple criteria

    HI,

    It helps when you send a file as example.
    Bas

    Any reputation is appreciated.

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    TX, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Remove duplicates based on multiple criteria

    Sorry about that.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove duplicates based on multiple criteria

    It can eaisly be done by Pivot Table, but I have also included a code if you wish to use it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    TX, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Remove duplicates based on multiple criteria

    Thanks for the help.

    On the code, is there a way to delete the rows that do not contain the max length instead of copying the data to new rows?

    The reason that I am asking this is because columns A Through S are filled with various data that I need to retain.

    Thanks for the help.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove duplicates based on multiple criteria

    All rows contain max value, but if you want to clear the original data and re-populate with new data.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: Remove duplicates based on multiple criteria

    Or maybe something like this?
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Code to remove duplicates based on a criteria
    By twizy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2014, 10:18 AM
  2. Code to remove duplicates based on a criteria
    By twizy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-17-2014, 09:48 AM
  3. [SOLVED] Count without duplicates based on multiple criteria from different cells
    By perryadam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 12:54 PM
  4. [SOLVED] Deleting Duplicates Based on Multiple Criteria from Multiple Columns
    By Franklic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 05:31 PM
  5. Remove duplicates based on criteria
    By keswickjeff in forum Excel General
    Replies: 2
    Last Post: 07-14-2011, 12:15 PM

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