+ Reply to Thread
Results 1 to 2 of 2

Merging text files with excel

  1. #1
    SpaceMax
    Guest

    Merging text files with excel

    Hello All.

    How can I merge several text files with the same format into one Excel sheet
    in one go ?
    I am importing them singly but it would be much better to merge them
    together before opening.

    Many thanks for any help !

  2. #2
    Dave Peterson
    Guest

    Re: Merging text files with excel

    Maybe you can use some old DOS commands.

    Shell to a command prompt and issue an old DOS command to concatenate the Text
    files.

    Windows start button|Run
    (or flying windows r as a shortcut!)
    win98: Command
    WinXP/NT: CMD

    Go to that folder:

    C:
    (to change to that drive)

    cd\myfolder1\myfolder2\myfolder3
    to change to that folder

    copy *.txt All.Files
    Ren All.Files All.Txt

    (if you used All.Txt, then the copy command would try to include the total file
    into itself--and you'd get an error. So we copy all the .txt files to .files
    and
    then just rename the .files to .txt)

    Exit to quit the shell.

    Then import all.txt into excel.

    SpaceMax wrote:
    >
    > Hello All.
    >
    > How can I merge several text files with the same format into one Excel sheet
    > in one go ?
    > I am importing them singly but it would be much better to merge them
    > together before opening.
    >
    > Many thanks for any help !


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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