33

I have a worksheet with a column, user_ID, that contains a large number of user IDs

I'd like to filter it down to about a dozen IDs, but using Filter -> Custom Filter only allows me to filter by 2 IDs total.

Is there a better way to filter this column by this dozen or so IDs?

2
  • custom sort or custom filter? If you go to filter - filter you can specify all the values with checkboxes – Raystafarian Jul 23 '13 at 23:37
  • 1
    I believe that the sentence only allows me to filter by 2 IDs total isn't clear at all. Can you please describe this better? Can you upload a photo maybe? – Math Jul 24 '13 at 1:34
48

Filter -> Custom Filter only allows me to filter by 2 IDs total.

Excel's Advanced Filter can filter for as many values as you want

enter image description here

  1. Set up your criteria range. The header must be named exactly like the column where Excel should apply your filter to (data table in example)
  2. Select your whole table (A1:A11 in example)
  3. Go to: Menu Bar » Data » Filter » Advanced
  4. Select your whole criteria range including the header under Criteria range (C1:C4 in example)

enter image description here enter image description here

3
  • 1
    awesome, this worked. "advanced filter" in excel 2010. – fox Jul 24 '13 at 20:14
  • To exclude things, I had to populate the data table with =if(not([condition I want to exclude]),value from cell, ""). Basically allowing every value except the ones I wanted to exclude. – Noumenon Sep 7 '17 at 20:28
  • how do i filter out any value with numbers, so that only the alphabetical values remain? – oldboy Jul 20 '19 at 8:12
6

I discovered that if you want to do an advanced filter on "contains text", you can put a wildcard (*) at the beginning and end of the criteria text. This allows a bit of a fuzzier match. For example *Bob Smith* in C2 above could pull "Bob Smith" OR "Mr. Bob Smith" out of column A, if it existed there.

1
  • 1
    This should be a comment to the above solution by @nixda. Very useful. Thanks – shreyansp Feb 6 '17 at 12:26
0

I duplicated the column I was filtering by and that gave me 4 arguments to use, 2 for each column.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.