+ Reply to Thread
Results 1 to 7 of 7

Help creating a Macro for combining data on dup records

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Help creating a Macro for combining data on dup records

    I have a spreadsheet of customer data, email address, customer number, and products they've purchased, and the file is about 200K row records. The emails can be tied to multiple customer numbers so I am trying to combine the data for products purchased at the email level that way every email only appears on one row line and it has all the items purchased for that email even if that email is tied to more that one customer number.

    please help me create a Macro to do this....I tried using a countifs but excel kept crashing on me.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Help creating a Macro for combining data on dup records

    You need to provide a sample data sheet, and please show both what your raw data looks like, and what you want it to look like after the macro runs. Doesn't have to be a huge data set, just a few examples that mirror the formatting of your spreadsheet.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Help creating a Macro for combining data on dup records

    How do I include a file to upload it? I couldn't figure that out and I just joined the forum

  4. #4
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Help creating a Macro for combining data on dup records

    Ok I think it's attached. the yellow highlights show the dup emails and how I need them combined
    Attached Files Attached Files

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Help creating a Macro for combining data on dup records

    Hi lwilt

    This Code is in the attached and appears to do as you require...please notice...I've changed the Name of Sheet1 to Input...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jaslake; 11-11-2015 at 06:49 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Help creating a Macro for combining data on dup records

    Thanks man that worked like a champ...you are a genius sir. I realized afterwards that some of the dup emails were from case errors so I will just need to change it all to one case before running the macro. being a new user I'm sure how to mark this thread as solved...

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Help creating a Macro for combining data on dup records

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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: 1
    Last Post: 08-31-2013, 01:36 PM
  2. Creating a macro to populate records from diferent worksheets
    By chichaspowa in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-22-2010, 02:51 PM
  3. [SOLVED] creating records without macro/VBA
    By bajdr47 in forum Excel General
    Replies: 1
    Last Post: 11-05-2009, 05:49 AM
  4. Replies: 4
    Last Post: 09-14-2009, 09:57 PM
  5. [SOLVED] combining rows of data to make complete records
    By cjemerson8 in forum Excel General
    Replies: 1
    Last Post: 03-18-2006, 02:45 PM
  6. Combining singles data records
    By sunman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2005, 08:05 AM
  7. Creating & Combining Macro to Functions
    By Wanda H. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  8. Creating & Combining Macro to Functions
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 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