<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Combining a ton of Excel files into one Excel file</title>
	<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file/</link>
	<description>Comments on Ask MetaFilter post Combining a ton of Excel files into one Excel file</description>
	<pubDate>Thu, 06 Nov 2008 12:05:08 -0800</pubDate>
	<lastBuildDate>Thu, 06 Nov 2008 12:05:08 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Combining a ton of Excel files into one Excel file</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file</link>	
		<description>How do I combine a lot of excel files into one file? &lt;br /&gt;&lt;br /&gt; I have hundreds of excel files that I want to combine into one excel file.  I want the data from each file to get piled up into one big file, in one workbook.  Just imagine if you had individual sports player stats, and you wanted to just see a big long list of player 1 separately, then player 2 separately, then player 3, on down.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.pcreview.co.uk/forums/thread-1739041.php&quot;&gt;This website&lt;/a&gt; suggests a command line solution, but I don&apos;t know if that works, plus I&apos;m using .xls files though I know the csv files referenced at that solution are similar.&lt;br&gt;
&lt;br&gt;
How do you suggest I do this?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.106144</guid>
		<pubDate>Thu, 06 Nov 2008 11:41:32 -0800</pubDate>
		<dc:creator>cashman</dc:creator>
		
			<category>excel</category>
		
			<category>merge</category>
		
			<category>combine</category>
		
	</item> <item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531700</link>	
		<description>First, Excel has a row limit of 65,536. If the combined amount of data exceeds this amount, you will not be able to store it in one Excel file.&lt;br&gt;
&lt;br&gt;
Second, CSV and XLS are fundamentally different. CSV is a text-only file that you can open with any text-editor. XLS files are binary representations of all kinds of data, text being only a small part, that are generally only supported by Excel and other spreadsheet applications.&lt;br&gt;
&lt;br&gt;
Text files can easily be combined with eachother, while binary files cannot.&lt;br&gt;
&lt;br&gt;
If your data is only columns of text and numbers, without graphs or fonts, then this is the easiest process:&lt;br&gt;
&lt;br&gt;
1. Export each of your files to CSV by selecting it from the Format menu under the filename in the Save As area of Excel.&lt;br&gt;
2. Use the solution you linked to, or a similar solution, to combine each of these resulting text files with eachother into one file.&lt;br&gt;
3. Re-open the file in Excel and Save As XLS.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531700</guid>
		<pubDate>Thu, 06 Nov 2008 12:05:08 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531704</link>	
		<description>Note the row limit is by sheet, not by workbook, and apparently has &lt;a href=&quot;http://blogs.msdn.com/excel/archive/2005/09/26/474258.aspx&quot;&gt;been increased in Excel 2007&lt;/a&gt; though I can&apos;t verify that, and of course you&apos;d be unable to send the data to older Excel users.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531704</guid>
		<pubDate>Thu, 06 Nov 2008 12:07:32 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: cashman</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531725</link>	
		<description>I&apos;m fairly sure I won&apos;t hit the limit.  Thanks for your reply.  Can I batch convert to csv?  Because if not, that means I have to go into each file.  If I go into each file I might as well just copy/paste.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531725</guid>
		<pubDate>Thu, 06 Nov 2008 12:21:24 -0800</pubDate>
		<dc:creator>cashman</dc:creator>
	</item><item>
		<title>By: qvtqht</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531736</link>	
		<description>Just to clarify, do you want each file to end up in its own worksheet, or for all of the files to get piled into the same worksheet?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531736</guid>
		<pubDate>Thu, 06 Nov 2008 12:27:07 -0800</pubDate>
		<dc:creator>qvtqht</dc:creator>
	</item><item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531740</link>	
		<description>Okay I lied, the easiest way is with a macro. Here it is:&lt;br&gt;
&lt;br&gt;
Private Sub ConcatenateAll()&lt;br&gt;
&lt;br&gt;
    Workbooks.Add&lt;br&gt;
    ChDir &quot;C:\&quot;&lt;br&gt;
    ActiveWorkbook.SaveAs Filename:=&quot;C:\ConcatResults.xls&quot;&lt;br&gt;
&lt;br&gt;
    CopyTargetBookmark = 1&lt;br&gt;
&lt;br&gt;
    For Each Workbook In Application.Workbooks&lt;br&gt;
        If Workbook.Name &lt;&gt; &quot;ConcatResults.xls&quot; And Workbook.Name &lt;&gt; &quot;PERSONAL.XLS&quot; Then&lt;br&gt;
            Workbook.Activate&lt;br&gt;
            Workbook.Worksheets(1).UsedRange.Copy&lt;br&gt;
            Workbooks(&quot;ConcatResults.xls&quot;).Activate&lt;br&gt;
            Range(&quot;A&quot; &amp;amp; CopyTargetBookmark).Select&lt;br&gt;
            ActiveSheet.Paste&lt;br&gt;
            CopyTargetBookmark = CopyTargetBookmark + Workbook.Worksheets(1).UsedRange.Rows.Count&lt;br&gt;
        End If&lt;br&gt;
    Next Workbook&lt;br&gt;
&lt;br&gt;
End Sub&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Open all of your workbooks at once, then run the macro. It will copy all of the information from each workbook&apos;s first sheet, then paste it into a workbook named &quot;ConcatResults.xls&quot; stored in C:\&lt;br&gt;
&lt;br&gt;
Each new paste will arrive right below the previous one, until it runs out of open workbooks to paste from.&lt;/&gt;&lt;/&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531740</guid>
		<pubDate>Thu, 06 Nov 2008 12:27:52 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: batmonkey</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531745</link>	
		<description>It would be way better to upload the information into a database, even Access, in order to combine that many records.&lt;br&gt;
&lt;br&gt;
Excel is going to drive you insane trying to combine that many files into one workbook. Aside from the row limit per sheet, there&apos;s a certain load point at which Excel chokes and starts taking down other Office apps as it flails while opening/accessing/saving very large files.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531745</guid>
		<pubDate>Thu, 06 Nov 2008 12:28:52 -0800</pubDate>
		<dc:creator>batmonkey</dc:creator>
	</item><item>
		<title>By: batmonkey</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531748</link>	
		<description>&lt;small&gt;And, on non-preview, nevermind - if you&apos;re not going to hit the row limit with hundreds of workbooks, my input is meaningless :D&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531748</guid>
		<pubDate>Thu, 06 Nov 2008 12:30:06 -0800</pubDate>
		<dc:creator>batmonkey</dc:creator>
	</item><item>
		<title>By: NailsTheCat</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531750</link>	
		<description>If you can program a little you can write a VBA macro to do this for you. Would need to do something like:&lt;br&gt;
 - Get list of files&lt;br&gt;
 - For each file use Import Data onto Existing Sheet &lt;br&gt;
  (You could also read file directly and write to activesheet.)&lt;br&gt;
You should use Record Macro and record the action of importing one file. It&apos;s pretty easy and would be a lot easier than doing it manually. I&apos;m too snowed at work to write it I&apos;m afraid. Maybe google-fu can find you an example.&lt;br&gt;
&lt;br&gt;
Here&apos;s a function you can use to get a list of files from a directory to start you off if you choose this route.&lt;br&gt;
&lt;br&gt;
Function fcnGetFileList(ByVal strPATH As String, Optional strFilter As String) As Variant&lt;br&gt;
&apos;   Returns a one dimensional array with filenames&lt;br&gt;
&apos;   Otherwise returns False&lt;br&gt;
&lt;br&gt;
Dim F As String&lt;br&gt;
Dim i As Integer&lt;br&gt;
Dim FileList() As String&lt;br&gt;
&lt;br&gt;
    If strFilter = &quot;&quot; Then strFilter = &quot;*.*&quot;&lt;br&gt;
&lt;br&gt;
    Select Case Right$(strPATH, 1)&lt;br&gt;
      Case &quot;\&quot;, &quot;/&quot;&lt;br&gt;
         strPATH = Left$(strPATH, Len(strPATH) - 1)&lt;br&gt;
    End Select&lt;br&gt;
&lt;br&gt;
    ReDim Preserve FileList(0)&lt;br&gt;
&lt;br&gt;
    F = Dir$(strPATH &amp;amp; &quot;\&quot; &amp;amp; strFilter)&lt;br&gt;
    Do While Len(F) &amp;gt; 0&lt;br&gt;
        ReDim Preserve FileList(i) As String&lt;br&gt;
        FileList(i) = F&lt;br&gt;
        i = i + 1&lt;br&gt;
        F = Dir$()&lt;br&gt;
    Loop&lt;br&gt;
    &lt;br&gt;
    If FileList(0) &lt;&gt; Empty Then&lt;br&gt;
        fcnGetFileList = FileList&lt;br&gt;
    Else&lt;br&gt;
        fcnGetFileList = False&lt;br&gt;
    End If&lt;br&gt;
End Function&lt;br&gt;
&lt;/&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531750</guid>
		<pubDate>Thu, 06 Nov 2008 12:31:49 -0800</pubDate>
		<dc:creator>NailsTheCat</dc:creator>
	</item><item>
		<title>By: emjay</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531756</link>	
		<description>Umm, I love Excel more than most, but it sounds like what you need is a database. Most databases can import the info you have in xls or csv format easily enough.&lt;br&gt;
&lt;br&gt;
But, to use Excel. Yes, I can confirm that the 2007 Excel row limit is over 1 million rows now (as opposed to the older 65k)&lt;br&gt;
&lt;br&gt;
It would be useful to know how you have the data arranged in your varying spreadsheets but the xls data can be converted to CSV easily enough. Open the file(s) in Excel, choose SAVE AS and change the drop down to CSV. This would allow you to use the application you gave the link for as well as other possibilities.&lt;br&gt;
&lt;br&gt;
The disadvantage to converting to CSV is that you lose any formatting and (again, without knowing what kind of data you are working with) this could be a dealbreaker.&lt;br&gt;
&lt;br&gt;
How many different files/workbooks/worksheets are we talking about here?&lt;br&gt;
&lt;br&gt;
There are many freelance type sites like &lt;a href=&quot;http://odesk.com&quot;&gt;oDesk&lt;/a&gt;, &lt;a href=&quot;http://elance.com&quot;&gt;eLance&lt;/a&gt;, and many others... that you can pay a relatively small wage for this type of data entry/clerical work. I had a similarly mind-numbing issue recently involving OCR Scanning and found a smart, pleasant gentleman who performed the work at a reasonable price and finished in half the time I expected him to. (Yes I paid him the originally budgeted hourly amount as a bonus.) One of the best $40 bucks I ever spent.&lt;br&gt;
&lt;br&gt;
Can you link up some example spreadsheets?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531756</guid>
		<pubDate>Thu, 06 Nov 2008 12:36:33 -0800</pubDate>
		<dc:creator>emjay</dc:creator>
	</item><item>
		<title>By: cashman</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1531764</link>	
		<description>Thanks for the macro.  I have to get together a few more .xls files, but I&apos;ll run it and hopefully it works.  Much, much appreciated.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1531764</guid>
		<pubDate>Thu, 06 Nov 2008 12:44:23 -0800</pubDate>
		<dc:creator>cashman</dc:creator>
	</item><item>
		<title>By: Salient</title>
		<link>http://ask.metafilter.com/106144/Combining-a-ton-of-Excel-files-into-one-Excel-file#1534451</link>	
		<description>As usual, I&apos;m late to the party, but I use an Excel add-in for this exact purpose. You can find it &lt;a href=&apos;http://www.rondebruin.nl/merge.htm&apos;&gt;here&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
I use it daily to combine a couple dozen .xls files without pain or dangerous side-effects.&lt;br&gt;
&lt;br&gt;
As mentioned previously, make sure the resulting big-ass file (BAF, if you will) isn&apos;t going to exceed Excel&apos;s ridiculous row limits (yes, it has been increased in 2007, but only to 104,000-odd rows). If it will exceed those limits, just do half or maybe a quarter of your files at a time, then pull them into Access to create the BAF.&lt;br&gt;
&lt;br&gt;
Cheers!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.106144-1534451</guid>
		<pubDate>Sun, 09 Nov 2008 07:07:48 -0800</pubDate>
		<dc:creator>Salient</dc:creator>
	</item>
	</channel>
</rss>
