+ Reply to Thread
Results 1 to 4 of 4

Consolidate files with different headers Part 2

  1. #1
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Angry Consolidate files with different headers Part 2

    I have more than 5 files that is possible to have different headers. I am able to locate the folder and scan through each files and put the filenames in the Main tab. Attached above are the sample files. The template is the Consolidation Automation v2 and the file to be opened is the 1.csv and 2.csv.

    Here is the Step by step process of the tool:
    [1] scan on each file
    [2] open the file
    [3] delete the 2nd row

    Which is already working, now I need to activate 1.csv and do the following:

    [4] I have to go back to the Consolidation Automation v2 file > Data tab
    [5] get the 2nd column header of the Consolidation Automation v2 file
    [6] find the 2nd column header to the opened file (1.csv)
    [7] copy the column data from the opened file excluding headers (Row 1)
    [8] paste it back to the Consolidation Automation v2 file

    [9] repeat steps 5-8 once all the headers where found, 1st column will fill up with the filename of the opened file (1.csv)
    [10] then count all the lines for the file and put it in the Main Tab
    [11] then repeat steps 1-10 again when moving the next file
    Attached Files Attached Files

  2. #2
    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: Consolidate files with different headers Part 2

    Hi Sarah

    Are all the csv files in the same Folder?
    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.

  3. #3
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Re: Consolidate files with different headers Part 2

    yes all in the same folder

  4. #4
    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: Consolidate files with different headers Part 2

    Hi Sarah

    Place all the attached Files in the same folder.

    Click the Go Button. You'll be prompted to select multiple csv Files to process (or one if that's all you wish to process).

    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. Consolidate files with different headers
    By SBBmaster09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2016, 10:44 AM
  2. [SOLVED] Consolidate columns with the same headers
    By skyr in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-03-2013, 10:07 PM
  3. Replies: 5
    Last Post: 04-12-2013, 09:16 AM
  4. Consolidate 3 tabs into one tab with only 1 row for headers
    By FLani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2013, 12:40 PM
  5. Consolidate Part Numbers Into a list
    By daletgfoster in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2012, 02:26 AM
  6. Consolidate Part Numbers
    By daletgfoster in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2012, 07:37 PM
  7. [SOLVED] How to consolidate worksheets (1 file) with different headers?
    By lem in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-17-2006, 12:25 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