+ Reply to Thread
Results 1 to 4 of 4

Combine Near-Duplicates

  1. #1
    Registered User
    Join Date
    08-12-2015
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    9

    Combine Near-Duplicates

    Hi all!

    I've got some "duplicate" data that I want to consolidate, of usernames (column A) with prices (column B) next to them.
    I used quotes because I think they're technically subsets, example is below.

    Column A is full of user IDs like this, in the format "Email Address (User ID)";

    person@domain.com (413425)
    user@place.com (315)
    thing@stuff.com (1515)

    But sometimes there will be a User ID or Email Address by itself that I need to combine with the full "Email (User ID)";

    person@domain.com (413425)
    user@place.com (315)
    413425
    315
    thing@stuff.com (1515)

    So above, I'd like to combine the price of "person@domain.com (413425)" and of "413425" into one total, prices found in column B on the same row of each.
    And also to combine "user@place.com (315)" with "315" and their prices in column B.
    They're the same user, the data has just been split.

    There is always a "full" username with ID in brackets somewhere in column A, but there will sometimes also be "parts" of the full thing floating around somewhere down the column.
    It's always either the number or the email alone.

    Is there any way to consolidate all the duplicate usernames and their corresponding prices?
    Let me know if more info is needed and thanks so much in advance!

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Combine Near-Duplicates

    Difficult to say without a sample upload workbook.

    Working with the data posted above try this.
    1. Insert 3 columns to the right of column A
    2. Then apply this parsing formula to B2, fill down and across to C6.
      Formula: copy to clipboard
      Please Login or Register  to view this content.
    3. Then this formula in D2 filled down to D6.
      Formula: copy to clipboard
      Please Login or Register  to view this content.

    The results look like this:

    Row\Col
    A
    B
    C
    D
    1
    Data E-mail address ID Combined E-mail / ID
    2
    **person@domain.com (413425) person@domain.com (413425) person@domain.com (413425)
    3
    **user@place.com (315) user@place.com (315) user@place.com (315)
    4
    **413425 413425 person@domain.com (413425)
    5
    **315 315 user@place.com (315)
    6
    **thing@stuff.com (1515) thing@stuff.com (1515) thing@stuff.com (1515)
    7
    Attached Files Attached Files
    Dave

  3. #3
    Registered User
    Join Date
    08-12-2015
    Location
    Melbourne
    MS-Off Ver
    2010
    Posts
    9

    Re: Combine Near-Duplicates

    Thanks a heap Dave, nearly perfect!
    I just also have "Price" values in column B that correlate to the user IDs.

    The total prices next to "315" and "user@place.com (315)" need to be totaled, and then any unique values should be left alone. So if "315" had $5 next to it, and "user@place.com (315)" had $6 next to it, I'd need one column to say "user@place.com (315)" and the corresponding price column to say "$11".

    Once I've got that and I can eliminate leftover duplicates, I'm set! Do you know how to consolidate an extra column of prices that correlate?

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Combine Near-Duplicates

    D2=413425, Formula in E2
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Help! How do I combine duplicates with different counts of inventory?
    By tybles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2013, 09:25 PM
  2. Replies: 6
    Last Post: 08-31-2011, 10:00 AM
  3. Need to combine like rows by duplicates in 2 columns
    By toolmanwill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2011, 12:58 AM
  4. Excel 2007 : Combine information for duplicates
    By Hayden.hr in forum Excel General
    Replies: 1
    Last Post: 10-06-2010, 02:12 PM
  5. Combine column data according to duplicates
    By harlowjohn1 in forum Excel General
    Replies: 2
    Last Post: 05-29-2010, 12:17 PM
  6. Combine Columns Leaving Only Duplicates
    By Darthmonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2008, 11:39 AM
  7. [SOLVED] combine row and the delete duplicates
    By bamamike in forum Excel General
    Replies: 2
    Last Post: 09-20-2005, 12:05 PM

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