how to filter spreadsheet by multiple variables?

J

Joe

I know I can use autofilter to find certain criteria that exist in
rows within the same column. Is it possible to sort by mutiple
variables, like 2 or 10? Say I have a column with variables a-z. Is it
possible to filter all the rows with b,c, j, p and x?
 
M

Max

.. Say I have a column with variables a-z. Is it
possible to filter all the rows with b,c, j, p and x?

Use helper col to flag it, then autofilter on the helper
Eg if data in A2 down,
you could place this in B2:
= -- ISNUMBER(MATCH(A2,{"b";"c";"j";"p";"x"},0))
Copy B2 down to the last row of data in col A,
then just autofilter on the col B, selecting: 1

---
 
J

Joe

Use helper col to flag it, then autofilter on the helper
Eg if data in A2 down,
you could place this in B2:
= -- ISNUMBER(MATCH(A2,{"b";"c";"j";"p";"x"},0))
Copy B2 down to the last row of data in col A,
then just autofilter on the col B, selecting: 1

Wow, that works great Max, and so simple - my favorite kind of
solution, thanks!
 
J

Joe

Use helper col to flag it, then autofilter on the helper
Eg if data in A2 down,
you could place this in B2:
= -- ISNUMBER(MATCH(A2,{"b";"c";"j";"p";"x"},0))
Copy B2 down to the last row of data in col A,
then just autofilter on the col B, selecting: 1

one other quick question, is there another way to copy the b2 equation
down the list other than dragging it? It's a very long spreadsheet,
thanks
 
M

Max

one other quick question, is there another way to copy the b2 equation
down the list other than dragging it? It's a very long spreadsheet,

2 ways
1. If there's no in-between blank cells in col A, just double click on the
fill handle
2. Type the range in the namebox*, eg, type: B2:B10000
Press ENTER, this selects the range with B2 active
Paste the formula into the formula bar,
then just press CTRL+ENTER
*the dropdown just to the left of the formula bar

---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top