Excel 2007: Filter one sheet based on a range of cells in another sheet
August 28, 2008 10:59 AM
Subscribe
Excel 2007: How do I filter one worksheet based on values in a range of cells in a second worksheet.
Example: ParentSheet has 50 rows.
ChildSheet has 36000 rows.
I want to filter ChildSheet to show only rows that have Column A = any of the values in ParentSheet, Column A.
I'd do this with a join or an In() in SQL, like: SELECT ChildSheet.* FROM ChildSheet WHERE ChidSheet.A = ParentSheet.A;
Is there an easy way to do this in Excel 2007?
posted by syzygy to computers & internet (5 comments total)
2 users marked this as a favorite
Create a new column in ChildSheet.
In the new column, enter formula =COUNTIF(ParentSheet!$A$1:$A$50,A1).
Now you can autofilter based on the new column, excluding zero.
posted by Perplexity at 11:17 AM on August 28, 2008 [1 favorite]