Filtering based on selection

jdmc45

Board Regular
Joined
May 8, 2011
Messages
146
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a long list with three long columns, column A is Code, column B is Date, Column C is Price.

I also have a much smaller list of the codes, 20 or so, which I want to filter the first list on. So for the list with three columns, I only want the entries that have the code in this smaller list.

What is the quickest way to do this? Currently I am filtering manually and it's taking ages.

Thanks for your help
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Have you spotted the 'advanced filter' option? Have a read of how that works, you might be pleasantly surprised.
 
Upvote 0
Have you spotted the 'advanced filter' option? Have a read of how that works, you might be pleasantly surprised.

I have looked into it, it is cumbersome and very slow. I want to be able to do it very quickly, as I have hundreds of worksheets to get through.
 
Upvote 0
What you could do is use it once while recording a macro, then use the code generated to process the other sheets. You may need to edit to make it more generic - post back if you need help with this part of the process.
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,949
Latest member
Dupuhini

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