Filter data by multiple values

gwoolley0302

Board Regular
Joined
May 13, 2014
Messages
55
Hi, I have a set of data which I'm looking to filter by the value in one of the columns. That specific column contains ID numbers; there are hundreds of unique ID numbers each with hundreds of entries. I want to extract a table which only represents (for example) 100 of the 500 ID numbers. I have a table of these 100 ID numbers - how would I use this to quickly filter the large set of data? I can't see an option in the regular autofilter tool - is there a search & find type of formula I could use? Really appreciate any help. Thanks, Greg
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
hi, Greg

If I understand correctly, easiest way might be with advanced filter - ALT-D-F. Excel help refers. Something like put the header for the field in row 1, the list of 100 ID numbers below that. If after a blank row or two you then have the full unfiltered dataset the advanced filter lets you copy the desired filtered results to another location on the same sheet.

Another way is using a query table - ALT-D-D-N and follow the wizard. This is a little more advanced. Basically a query using the two tables. In SQL it is like below

HTH. Regards, Fazza

Code:
SELECT A.*
FROM FullDataset A INNER JOIN ShortList B ON A.ID_field = B.ID_field

Or equally,
Code:
SELECT A.*
FROM FullDataset A, ShortList B
WHERE A.ID_field = B.ID_field
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,847
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top