<?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: Excel 2007: Filter one sheet based on a range of cells in another sheet</title>
	<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet/</link>
	<description>Comments on Ask MetaFilter post Excel 2007: Filter one sheet based on a range of cells in another sheet</description>
	<pubDate>Thu, 28 Aug 2008 11:17:25 -0800</pubDate>
	<lastBuildDate>Thu, 28 Aug 2008 11:17:25 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Excel 2007: Filter one sheet based on a range of cells in another sheet</title>
		<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet</link>	
		<description>Excel 2007: How do I filter one worksheet based on values in a range of cells in a second worksheet. &lt;br /&gt;&lt;br /&gt; Example: ParentSheet has 50 rows.&lt;br&gt;
ChildSheet has 36000 rows.&lt;br&gt;
&lt;br&gt;
I want to filter ChildSheet to show only rows that have Column A = any of the values in ParentSheet, Column A.&lt;br&gt;
&lt;br&gt;
I&apos;d do this with a join or an In() in SQL, like: SELECT ChildSheet.* FROM ChildSheet WHERE ChidSheet.A = ParentSheet.A;&lt;br&gt;
&lt;br&gt;
Is there an easy way to do this in Excel 2007?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.100341</guid>
		<pubDate>Thu, 28 Aug 2008 10:59:38 -0800</pubDate>
		<dc:creator>syzygy</dc:creator>
		
			<category>Excel</category>
		
			<category>Excel2007</category>
		
			<category>Filter</category>
		
	</item> <item>
		<title>By: Perplexity</title>
		<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet#1458774</link>	
		<description>Here&apos;s a quick hacky way:&lt;br&gt;
&lt;br&gt;
Create a new column in ChildSheet.&lt;br&gt;
&lt;br&gt;
In the new column, enter formula =COUNTIF(ParentSheet!$A$1:$A$50,A1).&lt;br&gt;
&lt;br&gt;
Now you can autofilter based on the new column, excluding zero.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100341-1458774</guid>
		<pubDate>Thu, 28 Aug 2008 11:17:25 -0800</pubDate>
		<dc:creator>Perplexity</dc:creator>
	</item><item>
		<title>By: milestogo</title>
		<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet#1458779</link>	
		<description>Maybe not the easiest way, but what I would do is add a column to ChildSheet that does a vlookup of Column A on Column A of ParentSheet. &lt;br&gt;
&lt;br&gt;
Example: There is some value in Cell A1 of ChildSheet. In Cell A2, you have &quot;=vlookup(A1,ParentSheet!A:A,1,false)&quot;&lt;br&gt;
&lt;br&gt;
Then, you&apos;ll have whatever value is in A1 if it appears in ParentSheet, or #N/A if it doesn&apos;t. At that point, you can replace the #N/A&apos;s with 0, and the values with 1, and sort accordingly.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100341-1458779</guid>
		<pubDate>Thu, 28 Aug 2008 11:20:39 -0800</pubDate>
		<dc:creator>milestogo</dc:creator>
	</item><item>
		<title>By: Perplexity</title>
		<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet#1458784</link>	
		<description>That would work too.  Not sure which would be faster.  Probably doesn&apos;t matter for this size sheet.  Not sure you you can filter directly on &quot;not #N/A&quot;...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100341-1458784</guid>
		<pubDate>Thu, 28 Aug 2008 11:24:38 -0800</pubDate>
		<dc:creator>Perplexity</dc:creator>
	</item><item>
		<title>By: syzygy</title>
		<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet#1458806</link>	
		<description>Thanks already, but now I have another question. I&apos;m trying to implement Perplexity&apos;s solution, but I&apos;m having the following problem:&lt;br&gt;
&lt;br&gt;
I type the formula into the first cell, works great. Now I copy it to the second cell...&lt;br&gt;
&lt;br&gt;
Problem: The formula changes to: =COUNTIF(ParentSheet!$A$2:$A$51,A2)&lt;br&gt;
&lt;br&gt;
So, the ParentSheet cell range is advancing (which I don&apos;t want), as is the ChildSheet criteria cell (which I do want).&lt;br&gt;
&lt;br&gt;
Any way to make it so that the parent sheet range is always A1:A50, but the ChildSheet criteria cell increments to match the row the formula is on?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100341-1458806</guid>
		<pubDate>Thu, 28 Aug 2008 11:34:10 -0800</pubDate>
		<dc:creator>syzygy</dc:creator>
	</item><item>
		<title>By: syzygy</title>
		<link>http://ask.metafilter.com/100341/Excel-2007-Filter-one-sheet-based-on-a-range-of-cells-in-another-sheet#1458813</link>	
		<description>Sorry - I left the dollar signs out of my first formula. Adding them in did the trick...&lt;br&gt;
&lt;br&gt;
Worked like a charm, thanks!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.100341-1458813</guid>
		<pubDate>Thu, 28 Aug 2008 11:37:05 -0800</pubDate>
		<dc:creator>syzygy</dc:creator>
	</item>
	</channel>
</rss>
