+ Reply to Thread
Results 1 to 2 of 2

Macro to combine and clean multiple files

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    1

    Macro to combine and clean multiple files

    Hi!

    Never dealt with macros in excel before. I need a macro that combines numerous csv files that use the same format and then filters out duplicate records or rows based on one of the columns...

    See attached. Want to combine multiple files just like these automatically and then filter out any duplicate rows or records based on the UniqueWellItentifier column.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to combine and clean multiple files

    'CSVs To One Sheet (Stacked)
    A macro for importing all CSV files in a folder into a single Excel sheet, each CSV filename will be listed on the sheet next to the data that it came from.
    CSVs to 1 Sheet - Part 1



    Then just tack this line of code on near the very end to remove duplicates for you:
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-26-2019 at 03:37 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Clean way to combine macro buttons (combo list?)
    By koodicoderi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-03-2013, 06:06 AM
  2. Combine multiple excel files to one
    By anoopbaiju in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-03-2013, 09:04 AM
  3. [SOLVED] Using Combine macro to combine multiple worksheets - need to modify to paste formulas
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2012, 09:07 AM
  4. combine multiple files into one
    By Muzbuz in forum Excel General
    Replies: 10
    Last Post: 06-14-2010, 11:52 PM
  5. combine multiple worksheets & files into 1
    By Barb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2005, 07: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