+ Reply to Thread
Results 1 to 5 of 5

Perform same action on similar files and create one master list

  1. #1
    Registered User
    Join Date
    06-21-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    29

    Perform same action on similar files and create one master list

    I have multiple files of the same kind (same headlines, different length of list). Files are at CSV format at the time, in contrary to the attached file that was converted to xlsx.
    I would like each list to leave only the 5 left hand side columns, add another column with the file name (only file name, no full directory, and better without dashes).
    Afterwards, I'd like to create a continuous table (consolidate?) of the multiple lists I got.
    attached an example of stage one of the process.

    Gratitude to all helpers.
    Droriley.

    members_702309_end-makers.xlsx

  2. #2
    Registered User
    Join Date
    03-14-2015
    Location
    Tehran
    MS-Off Ver
    2010
    Posts
    7

    Re: Perform same action on similar files and create one master list

    Quote Originally Posted by Droriley View Post
    I have multiple files of the same kind (same headlines, different length of list). Files are at CSV format at the time, in contrary to the attached file that was converted to xlsx.
    I would like each list to leave only the 5 left hand side columns, add another column with the file name (only file name, no full directory, and better without dashes).
    Afterwards, I'd like to create a continuous table (consolidate?) of the multiple lists I got.
    attached an example of stage one of the process.

    Gratitude to all helpers.
    Droriley.

    Attachment 383209
    what do you mean by "5 left hand side columns"

  3. #3
    Registered User
    Join Date
    06-21-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Perform same action on similar files and create one master list

    Quote Originally Posted by Mehdi Farrokh View Post
    what do you mean by "5 left hand side columns"
    I mean the following columns to remain:

    Email Address First Name Last Name Company Country

    And to them I'd like to add a column named "Group" with the same entry for each of the lines.

  4. #4
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Perform same action on similar files and create one master list

    So.. the filenames are always delimited by an underscore?

    And you want the upper bound of that split( as shown by "end makers" in your example) to be shown in the new column (column F)?

    Where are your files? DO you want a Folder picker dialogue so the user can select the Folder where they are?

    Perhaps (for testing purposes).. attach maybe 3 of the csv files (change the file extension to .txt to get bypass any automatic conversion)..

  5. #5
    Registered User
    Join Date
    06-21-2013
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Perform same action on similar files and create one master list

    Quote Originally Posted by apo View Post
    So.. the filenames are always delimited by an underscore? Correct

    And you want the upper bound of that split( as shown by "end makers" in your example) to be shown in the new column (column F)? Correct

    Where are your files? DO you want a Folder picker dialogue so the user can select the Folder where they are? Not sure what you mean - I'll make a separate folder for all relevant files.

    Perhaps (for testing purposes).. attach maybe 3 of the csv files (change the file extension to .txt to get bypass any automatic conversion)..
    Please find attached 3 CSV files, (one which you'll be able to see origin in first 8 lines and target look from line 24. In reality only lines 1-8 (or 1->any number) exist. also please find file called "Master list". This is the final goal. Cheers!

+ 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: 4
    Last Post: 12-04-2014, 12:14 PM
  2. Replies: 1
    Last Post: 07-19-2011, 10:22 PM
  3. Perform action based on choice from validation list
    By kjetiltb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2009, 04:57 AM
  4. create separate files from master
    By izza56 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-15-2007, 05:33 AM
  5. get list of all files in folder, perform action on each
    By lowb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2006, 05:30 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