<?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: How to get Excel to search multiple files?</title>
	<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files/</link>
	<description>Comments on Ask MetaFilter post How to get Excel to search multiple files?</description>
	<pubDate>Mon, 26 Mar 2012 07:26:53 -0800</pubDate>
	<lastBuildDate>Mon, 26 Mar 2012 07:35:25 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How to get Excel to search multiple files?</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files</link>	
		<description>How do I get Excel to search through multiple files and extract data into a separate worksheet? &lt;br /&gt;&lt;br /&gt; I have a folder of separate worksheets which are (more or less) the same format 1 page sheets with various rows and columns of data. They&apos;re invoices so the data is generally consistent (Date, Amount, Total etc). &lt;br&gt;
&lt;br&gt;
There&apos;s a lot of them and I&apos;m trying to get Excel to pull data from various cells in each sheet and index them into a separate index worksheet. I can do something similar (but simpler) with multiple sheets in a workbook, but this one is stumping me. &lt;br&gt;
&lt;br&gt;
To make things trickier there are no named cells and sometimes the data is in different rows to the other sheets. However, the rows that are relevant have a text tag a few columns over. For instance, B34 would say &apos;Tax&apos; and G34 would have the figure. I&apos;m sure there&apos;s a method for telling Excel to open a sheet, find those text cells and then deliver the data 2 cols over, but my Googlefu isn&apos;t delivering.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2012:site.211397</guid>
		<pubDate>Mon, 26 Mar 2012 07:26:53 -0800</pubDate>
		<dc:creator>panboi</dc:creator>
		
			<category>Excel</category>
		
	</item>
	<item>
		<title>By: odinsdream</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049013</link>	
		<description>This is a job for macros. I suggest &lt;a href=&quot;http://www.mrexcel.com/forum/index.php&quot;&gt;the Mr. Excel forums&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049013</guid>
		<pubDate>Mon, 26 Mar 2012 07:35:25 -0800</pubDate>
		<dc:creator>odinsdream</dc:creator>
	</item><item>
		<title>By: beyond_pink</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049016</link>	
		<description>Something like this might work - the formula below is looking for the word &quot;tax&quot; in column B of the other file (myotherfile.xlsx), then returning whatever is in column G.&lt;br&gt;
=VLOOKUP(&quot;tax&quot;, [myotherfile.xlsx]Sheet1!$B$1:$C$50, 6)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049016</guid>
		<pubDate>Mon, 26 Mar 2012 07:37:20 -0800</pubDate>
		<dc:creator>beyond_pink</dc:creator>
	</item><item>
		<title>By: soelo</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049284</link>	
		<description>I don&apos;t think you need macros unless you are doing this on a regular basis. Even if you are, as long as the names are the same each time, or are changed in a standard way, you should be fine just using beyond_pink&apos;s formula and tweaking the file names.&lt;br&gt;
&lt;br&gt;
You need a list in Excel of all of the file names you want to use. If you are using a PC, open a browser that isn&apos;t IE and paste the address of the folder into the address bar (if you use IE it will open Windows Explorer and you don&apos;t want that). It will show you a list of your files that you can copy and paste into Excel. Delete the columns you don&apos;t need and use it to manipulate the formulas. If they change next month, you will probably be able to do a Find/Replace to get the new names.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049284</guid>
		<pubDate>Mon, 26 Mar 2012 11:05:47 -0800</pubDate>
		<dc:creator>soelo</dc:creator>
	</item><item>
		<title>By: beyond_pink</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049468</link>	
		<description>P.S. I just realized my formula should have been $B$1:$G$50 (assuming your other file has 50 rows)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049468</guid>
		<pubDate>Mon, 26 Mar 2012 12:42:42 -0800</pubDate>
		<dc:creator>beyond_pink</dc:creator>
	</item><item>
		<title>By: panboi</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049539</link>	
		<description>Thanks for the responses. It certainly looks like a step in the right direction. &lt;br&gt;
&lt;br&gt;
However, I can&apos;t seem to get that formula to work at this end. It either returns a response of zero or flags up an error, regardless of how I tweak it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049539</guid>
		<pubDate>Mon, 26 Mar 2012 13:32:47 -0800</pubDate>
		<dc:creator>panboi</dc:creator>
	</item><item>
		<title>By: soelo</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049652</link>	
		<description>In case you are copying the formula as written, remove the spaces after the commas.&lt;br&gt;
&lt;br&gt;
Try using the formula builder in Excel: put your cursor in the cell, hit the equals sign and then click on VLOOKUP if it shows up or hit the down arrow if another formula shows up.&lt;br&gt;
&lt;br&gt;
Lookup_value should be &quot;tax&quot; with the quotes. Click in the box next to Table_array and then highlight the columns you are using starting with the column that says &quot;tax&quot; - it must be the first column in the range. Col_index_num is how many columns it should move over, so from B to G is B,C,D,E,F,G so 6. Range_lookup is optional, but put FALSE in there.&lt;br&gt;
&lt;br&gt;
Lastly, make sure the cell actually says &quot;tax&quot; and doesn&apos;t have any spaces or other punctuation. Actually type &quot;tax&quot; into it to test if that fixes the formula.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049652</guid>
		<pubDate>Mon, 26 Mar 2012 14:56:00 -0800</pubDate>
		<dc:creator>soelo</dc:creator>
	</item><item>
		<title>By: panboi</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3049689</link>	
		<description>OK, the &apos;FALSE&apos; element certainly makes a difference and the point about the text element needing to be precise. So I have it working now. Thanks for the advice so far :)&lt;br&gt;
&lt;br&gt;
The only tricky thing to solve is taking the file names (BTW soelo, that was a great suggestion as to how to grab all the file names in one go!) and populating those into the formula down the sheet. I can have the formula refer to the file names that are now in a handy column, but it won&apos;t read them as paths. There&apos;s a prompt for me to insert the file from a pop-up box, but that kind of defeats the object of the exercise.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3049689</guid>
		<pubDate>Mon, 26 Mar 2012 15:28:21 -0800</pubDate>
		<dc:creator>panboi</dc:creator>
	</item><item>
		<title>By: soelo</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3050045</link>	
		<description>Any way you could copy the sheets into the same workbook? It&apos;s shorter to refer to another sheet than it is to refer to another file. I can&apos;t take credit for the file name list method, but I can&apos;t find the page that I found it on either.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3050045</guid>
		<pubDate>Mon, 26 Mar 2012 19:47:09 -0800</pubDate>
		<dc:creator>soelo</dc:creator>
	</item><item>
		<title>By: Boobus Tuber</title>
		<link>http://ask.metafilter.com/211397/How-to-get-Excel-to-search-multiple-files#3053125</link>	
		<description>If you have a list of filenames, as soelo suggested, then you can use INDIRECT to populate the formula with different filenames easily. E.g. for a filename in Cell A1, the formula above could be written as&lt;br&gt;
&lt;br&gt;
=VLOOKUP(&quot;tax&quot;, INDIRECT&quot;[&quot;  &amp;amp; A1 &amp;amp;  &quot;]Sheet1!$B$1:$C$50&quot; ), 6)&lt;br&gt;
&lt;br&gt;
INDIRECT basically treats a string as a worksheet reference, so you can join the filename to another string (e.g. the range), and get a reference to use in a VLOOKUP.&lt;br&gt;
&lt;br&gt;
For a list of files in Column A, drag down. I think this only works if the files are open though, Excel doesn&apos;t follow INDIRECT links into closed workbooks. You can just select all the files in explorer, drop them on Excel, then paste special as values.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.211397-3053125</guid>
		<pubDate>Wed, 28 Mar 2012 16:11:23 -0800</pubDate>
		<dc:creator>Boobus Tuber</dc:creator>
	</item>
	</channel>
</rss>
