+ Reply to Thread
Results 1 to 7 of 7

Concatenating data depending on duplicate emails and names

  1. #1
    Registered User
    Join Date
    02-07-2021
    Location
    Australia
    MS-Off Ver
    Microsoft Office for Mac v16.45
    Posts
    4

    Concatenating data depending on duplicate emails and names

    Hey!

    I've been working on a project to help shorten the time it takes to filter and sort out some contacts from a spreadsheet to upload as a CSV. Only thing is I have run into a roadblock with a specific part of the sorting process which is compressing contact information of contacts with different names but using the same email.
    I have attached an example of what I mean, but in words, the contact list is to send to a list of contacts that have family members in a retirement village. there could be multiple contacts for one person or multiple people for one contact.

    I'm wanting to detect the duplicates by email and then it will concatenate any first or preferred names and then can just delete the rest. The first row of double data would be the one that would stay.

    I already have a macro workbook with a heap of VBA in it doing other things so having this solution in VBA will help a heap. Don't worry about Dim names and stuff, I can go through and adjust to suit what I have on the other workbook (just not sharing it as its confidential information)
    This needs to be Mac friendly.

    Let me know if I need to explain more.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Concatenating data depending on duplicate emails and names

    This is only for the data layouts that you uploaded.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-07-2021
    Location
    Australia
    MS-Off Ver
    Microsoft Office for Mac v16.45
    Posts
    4

    Re: Concatenating data depending on duplicate emails and names

    Thanks for the speedy reply!
    I have gone through the code but am struggling to understand how it's working... I do have more columns in the actual file but thought if I got a rough idea of what you sent I can just implement it into my workbook.
    Unfortunately, I am still fresh in VBA and am still learning all the functions and stuff.
    Would you be able to explain how it all works? For more of an idea cause I think I forgot to explain it in the initial thread, I will have filtered to show all duplicate email rows. and there are a couple hundred. there is other data in that but It is data that i didn't add that might need to be in it but all it is, is different letter terms that I could also concat.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Concatenating data depending on duplicate emails and names

    1) Is it working with your wokbook uploaded?

    2) As I already mentioned, I coded based on your data layout.
    If it is not like that, you shoukd uplaod the file with identical data layouts as your true file.

    Anyway, I am not with my pc, so my next post will be late.

  5. #5
    Registered User
    Join Date
    02-07-2021
    Location
    Australia
    MS-Off Ver
    Microsoft Office for Mac v16.45
    Posts
    4

    Re: Concatenating data depending on duplicate emails and names

    No worries, Sorry about that I have attached an updated version with identical headers and data examples to my main document.
    I've also added one more scenario, where one person is in type 1 and the other is in type 2. (There will only ever be two types)

    If possible could you also explain a few of the functions? just so I can understand it better.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Concatenating data depending on duplicate emails and names

    The code is assuming the data is sorted by email column.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-07-2021
    Location
    Australia
    MS-Off Ver
    Microsoft Office for Mac v16.45
    Posts
    4

    Re: Concatenating data depending on duplicate emails and names

    Thanks! I'll let you know how it goes

+ 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. Replies: 7
    Last Post: 12-23-2015, 07:43 AM
  2. [SOLVED] Concatenating Rows with Duplicate Data and Removing
    By husakt in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-02-2015, 09:46 AM
  3. Excel vba to auto-send customer emails (duplicate emails issue)
    By nadz84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2015, 10:08 AM
  4. [SOLVED] Data validation- Remove duplicate records by concatenating multiple columns to get unique
    By thara.p24 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-09-2014, 12:57 AM
  5. Concatenating values for duplicate data cells
    By thefuzzybear in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-16-2013, 10:41 PM
  6. Replies: 4
    Last Post: 01-24-2012, 03:20 PM
  7. concatenating a list of emails
    By dada_man in forum Excel General
    Replies: 1
    Last Post: 12-18-2008, 02:50 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