EASIER WAY TO FILTER

meppwc

Well-known Member
Joined
May 16, 2003
Messages
647
Office Version
  1. 365
Platform
  1. Windows
I have a column on my spreadsheet for "COST CODES"
That list can have over a thousand different values that are repeated multiple times.
I have the need to filter that column to include several hundred of those values and the only way I know to do it, is to pull down and search for each value one at a time, and continuously select "ADD CURRENT SELECTION TO FILTER".
Needless to say, this is very time consuming and I have to perform this exercise often.
Is there an easier way of performing this task?
 
Hello,

There are many ways:

Using the FILTER formula (with a "filter list")
Using PowerQuery (with a "filter list table")
Using VBA


It depends on the output you expect, and what you want to do with it.
 
Upvote 0
If I use the FILTER formula, I am not sure where to input the formula.
 
Upvote 0
You could put list list of 100 codes to filter a spare column (or even a different sheet) and use a helper column to check if the "Cost Code" is in that list. You could then filter on the helper column.

For example>
Book1
ABCDE
1CodesHelper to Filter OnFillter List
23FALSE5
39TRUE7
41FALSE8
53FALSE9
69TRUE
71FALSE
85TRUE
94FALSE
107TRUE
117TRUE
122FALSE
138TRUE
149TRUE
156FALSE
164FALSE
179TRUE
186FALSE
192FALSE
209TRUE
213FALSE
221FALSE
234FALSE
2410FALSE
255TRUE
267TRUE
279TRUE
289TRUE
296FALSE
308TRUE
318TRUE
321FALSE
Sheet1
Cell Formulas
RangeFormula
B2:B32B2=ISNUMBER(MATCH(A2,$E$2:$E$5,0))
 
Upvote 0
I am not trying to find out if the values exist. I need to filter a huge list of over 10,000 rows to only include specific cost codes.
 
Upvote 0
Hi, I understand what you are trying to do and the method I've described is one way that you could achieve it.

You would add the helper column and apply a filter where that column is TRUE to filter the list for the 100's of codes you listed elsewhere on the sheet.

1741890680677.png
 
Upvote 0
Solution
OHHHHHHH.............now I got you................working on it right now.
 
Upvote 0

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