PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Worksheet Functions How do you combine multiple csv files into one file?

Reply

How do you combine multiple csv files into one file?

 
Thread Tools Rate Thread
Old 01-07-2003, 02:51 AM   #1
Brian Wenner
Guest
 
Posts: n/a
Default How do you combine multiple csv files into one file?


Hello,

I have six comma delimited files with a csv extensions on my desktop. I want
to combine the six files into one file and load them into Excel. Right now I
am loading all six into one session of excel then I copying the contents of
one book and paste into the first book, copy paste, copy paste, copy paste,
etc... I figure there has to be a better way. So my question is:

How do you combine multiple csv files into one file with Excel?


Brian


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/2003


  Reply With Quote
Old 01-07-2003, 06:44 PM   #2
Microsoft
Guest
 
Posts: n/a
Default Re: How do you combine multiple csv files into one file?

As I recall, arent the CSV files just text with Comma Seperators? If that is
the case open them in notepad and paste them together!
MArcos

"Brian Wenner" <brianwenner@comcast.net> wrote in message
news:yO5Ma.69992$R73.9734@sccrnsc04...
> Hello,
>
> I have six comma delimited files with a csv extensions on my desktop. I

want
> to combine the six files into one file and load them into Excel. Right now

I
> am loading all six into one session of excel then I copying the contents

of
> one book and paste into the first book, copy paste, copy paste, copy

paste,
> etc... I figure there has to be a better way. So my question is:
>
> How do you combine multiple csv files into one file with Excel?
>
>
> Brian
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/2003
>
>



  Reply With Quote
Old 04-01-2007, 04:06 PM   #3
drwecki
Junior Member
 
Join Date: Jan 2007
Posts: 2
Trader Rating: (0)
Cool

Actually, that won't solve Brian's problem. There is a program that costs 20 bucks that will do it for you but...I don't think so.... All you need to do is open your DOS prompt i.e

Start>Run>type "cmd"

Then make sure all your csv files are in the same folder. I caled my folder help and put it in the C: folder.

Type CD C:help (hit enter)

You should see some verification that you are in this folder.

Type copy *.csv name.csv

Note there is a space between the word copy and the * and a space between.csv and name. Also note that you can change name to anything you want. This will copy all csv files an combine them in a file called name.csv. It copies them in such a manner that it is identical to copying and pasting multiple csvs in excell on the vertical axis 1 to infinity (Not a to vv). It's pretty sweet.


Brian 2
drwecki is offline   Reply With Quote
Old 04-01-2007, 06:43 PM   #4
drwecki
Junior Member
 
Join Date: Jan 2007
Posts: 2
Trader Rating: (0)
Default

I meant to say type cd c:\help...that will do it
drwecki is offline   Reply With Quote
Old 17-05-2007, 04:33 PM   #5
bkarim2
Junior Member
 
Join Date: May 2007
Posts: 2
Trader Rating: (0)
Smile Thanks a lot

Thanks a lot dude, you are the man!
bkarim2 is offline   Reply With Quote
Old 22-05-2007, 06:04 PM   #6
whatfourever
Junior Member
 
Join Date: May 2007
Posts: 2
Trader Rating: (0)
Default

How about instead, you go to the command window. (Press "Window Key" and "R", then type command and enter.

Type copy c:\*.csv c:\File.csv and press enter

This will combine all of the csv files that are in your root c:\ directory into one file called File.csv.

You can change the file names and paths as necessary.

Paul
whatfourever is offline   Reply With Quote
Old 22-05-2007, 06:06 PM   #7
whatfourever
Junior Member
 
Join Date: May 2007
Posts: 2
Trader Rating: (0)
Red face

Sorry guys. I see someone already gave that suggestion.


later
whatfourever is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off