Advanced Filter: Multiple <>

Texas Longhorn

Active Member
Joined
Sep 30, 2003
Messages
493
I'm using advanced filter on a list, and I'm trying to use multiple "does not equals". Here's what I've got:
Book4
ABCDEF
1Int'lRegCountryDirMgrRep
2<>NA
3<>DL
4
5
6
7DirMgrRep
8NXBSLGRGM
9NXBNBCGAL
10NXBSLGCLW
11DLDLMH
12DLDLGK
13PGOKACSBA
14NXBSLGERM
15NXBSLGJPB
16PGOKACBMM
17DLPMJR
18MJMMLWDXS
19PMPBLSCMS
20MJMJMMJMK
21PMPBLSBPB
22DLDLAM
23NANADAS
24PMPPAKHRM
25PMPDWBDTT
26PMPDWBJPB
Sheet2


I'm not sure why this is failing to filter out DL and NA. When I enter just one criterion (e.g.<>DL), the filter works, but when I attempt multiple<>s, it does not.

What am I doing wrong?

Many thanks,

Bill
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If the condition is an 'and' it must be contained in the same row.

Multiple rows are 'or's.

Try two 'DIR' columns with each having one of the criteria
 
Upvote 0
Brad - thanks. Your suggestion to use multiple DIR columns worked. I didn't realize I could do that - I thought my criteria headings had to match my source data headings. Definitely good to learn otherwise.

Thanks again,

Bill
 
Upvote 0
Bill,

If your criterion in row 2 is a formula, then row 1 must be blank. The following works too.

D2:
=AND(A8<>"NA",A8<>"DL")
Book1
ABCDEFGH
1Int'lRegCountryDirMgrRep
2TRUE
3
4
5
6OutputRange:
7DirMgrRepDirMgrRep
8NXBSLGRGMNXBSLGRGM
9NXBNBCGALNXBNBCGAL
10NXBSLGCLWNXBSLGCLW
11DLDLMHPGOKACSBA
12DLDLGKNXBSLGERM
13PGOKACSBANXBSLGJPB
14NXBSLGERMPGOKACBMM
15NXBSLGJPBMJMMLWDXS
16PGOKACBMMPMPBLSCMS
17DLPMJRMJMJMMJMK
18MJMMLWDXSPMPBLSBPB
19PMPBLSCMSPMPPAKHRM
20MJMJMMJMKPMPDWBDTT
21PMPBLSBPBPMPDWBJPB
22DLDLAM
23NANADAS
24PMPPAKHRM
25PMPDWBDTT
26PMPDWBJPB
Sheet2


Regards,

Mike
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,645
Members
448,974
Latest member
DumbFinanceBro

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