+ Reply to Thread
Results 1 to 7 of 7

Merging incoming Excel files((

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    4

    Merging incoming Excel files((

    Hello

    Am not at superuser in Exchel, so I need som help.

    I have a Excel 2010 on a Windows 7 computer.

    Every day I get an csv file (test.csv) with the same content, just that they added some more lines.

    How can I merge this new file every day to my already test.csv (automatic if posible) Now I haft to do this manuell.

    Is it posible?

    Ntest.csv

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Merging incoming Excel files((

    Hi and welcome to the forum

    If all that is happening is extra data is being added, why merge them? Just over-write the 1st set of data with the new data?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-02-2014
    Posts
    4

    Re: Merging incoming Excel files((

    Hi, and thanx

    Well - yes, sort off hehe.

    I have a csv file with about 1.million rows. And for each day, I get a new file - with new rows. Not sure, but between 50 - 100 new rows each day.

    The file is named the same as the first csv file.

    And I want all of the data inside, not just the new ones

    Not sure if you understand me here

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Merging incoming Excel files((

    so you want to keep all the data you have original but add all the new lines every day?

    so in fact you are appending your file new files

    would this non excel solution work?
    http://www.solveyourtech.com/merge-csv-files/

    the excel solution is a lot more complicated requiring some VBA knowledge
    Last edited by humdingaling; 06-03-2014 at 03:58 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    06-02-2014
    Posts
    4

    Re: Merging incoming Excel files((

    Hi

    I want to keep all my data yes. just add the rows that comes in every day - in the first csv file

    Maby appending is a better word than merge

    Hmm not sure. Going to test now .

  6. #6
    Registered User
    Join Date
    06-02-2014
    Posts
    4

    Re: Merging incoming Excel files((

    Well - it went okey.

    I have to files. First file have 80 rows (test001.csv) the second file test002.csv have 57 rows.

    When I rund the - copy *.csv allofthem.csv I only get the rows from teste001.csv. Rows in test002.csv are not beeing copyed.

    I would like the result to be like the file allofthem.csv

    allofthem.csvtest001.csvtest002.csv

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Merging incoming Excel files((

    hmmmm the only difference i get is that allofthem is cleaned up due to test 001 having many ";" lines at the bottom

    so you want a process to clean it up after combining?

    Please Login or Register  to view this content.
    open csv and run this code
    it should clean up any lines that behind with ;;; <<you can add detail more if you want to be more specific
    Last edited by humdingaling; 06-03-2014 at 08:23 PM.

  8. #8
    Registered User
    Join Date
    06-02-2014
    Posts
    4

    Re: Merging incoming Excel files((

    notthis.jpgHi

    Very nice - works like a charm

    One thing thoug.... how can Remove the first line.

+ 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. Macro from incoming files
    By RMGraham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2012, 04:16 PM
  2. Setting up a system to take incoming files information
    By RMGraham in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 03:39 PM
  3. [SOLVED] Merging Excel Files
    By Lupe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2006, 09:30 AM
  4. merging my excel files
    By Donna YaWanna in forum Excel General
    Replies: 1
    Last Post: 06-13-2005, 08:05 PM
  5. merging excel files
    By Etringale in forum Excel General
    Replies: 2
    Last Post: 06-09-2005, 01:23 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