The Computer Oracle

Excel: filter a column by more than two values

-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Question
00:31 Accepted answer (Score 51)
01:29 Answer 2 (Score 9)
01:58 Answer 3 (Score 1)
02:14 Answer 4 (Score 0)
03:06 Thank you

--

Full question
https://superuser.com/questions/623380/e...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#microsoftexcel #microsoftexcel2010 #microsoftexcel2007

#avk47



ACCEPTED ANSWER

Score 52


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




ANSWER 2

Score 10


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.




ANSWER 3

Score 2


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




ANSWER 4

Score 0


For multiple "Contains" conditions its easier to create a second column with the particular values you're after. Make sure the 2nd column has the same Column Header as the 1st column that you plan to filter.

  1. Select the column you want to filter (column B)
  2. Click Data Menu > click Advanced Filter
  3. Click Criteria Range
  4. Select the 2nd columns particular values (Column G)
  5. OK

eg: Filter my purchases by Tax Deductibles.

enter image description here