?
Solved

Excel 2010 Filtering Rows Based on Match List

Posted on 2014-04-09
3
Medium Priority
?
43,894 Views
Last Modified: 2014-04-23
I have an Excel Workbook that contains 2 sheets.

Sheet1 contains 93 columns and 50,000 rows.

Sheet2 contains a single column (Names), with 2000 rows.

I want to filter the rows in Sheet1, by the Name column, based on the Names that are located in Sheet 2.

I would like to have Sheet1 filtered, so it contains all 93 columns of data, based on the 2000 names I have in Sheet2.

I've tried the Advanced filter in place, however this was unsuccessful.

My excel skill level is intermediate.  I appreciate any help.

As some background information: Sheet 1 is an Outlook contacts list. Sheet 2 is a list of names that are located on Sheet1. I wish to have the sheet filtered to get all the values on Sheet 1, so I have 2000 rows of names and 93 columns.

Thanks.
0
Comment
Question by:fireguy1125
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

Expert Comment

by:Rgonzo1971
ID: 39990739
HI,

Could you send a dummy example?

Regards
0
 
LVL 27

Accepted Solution

by:
MacroShadow earned 1000 total points
ID: 39990780
1. Select the range of names on sheet 2 and name it "NamedList" (without the quotes) by entering the name in the Name box on the left side of the Formula Bar.
2. On sheet 1, in the first column to right of your data (CP), enter in row 2 (leaving row 1 blank):
 =COUNTIF(NamedList, A2)

Open in new window

3.  Select cell A2 (on sheet 1), and choose Data/Advanced Filter. In the dialog, select the "Filter the list, in place" radio button.
4. Verify the List Range contains the range of your data.
5. In the Criteria Range box, enter CP1:CP2 (make sure you include row 1)
6. Click OK

Note: This example assumes that your data has a header row.
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 1000 total points
ID: 39999759
You could implement an INDEX formula alongside your 2000 names in sheet2.

Insert a row above your 2000 names and copy and paste the headers from the source sheet and move your 2000 names to the correct column, for this purpose I will assume that the name is column A.

For the other columns use the following formula:

=INDEX(Sheet1!$A$1:$CO$50000,MATCH($A2,Sheet1!$A$1:$A$50000,0),MATCH(B$1,Sheet1!$A$1:$CO$1,0))

This says, look at the range Sheet2!A1:CO50000 (CO = column 93) and in column A of that range find the match for the value in column A of sheet 2 to determine the row to use for the result. Then look at the header in row 1 and find the column for the header in sheet1. Thuis creating an intersect of row and column based on the name in column A.

The sections refrring to column A that are bold and underlined, should be adjusted to reflect your data and adjust the 50000 to reflect the actual number of rows.

Thanks
Rob H
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
New style of hardware planning for Microsoft Exchange server.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question