Advanced Filtering Not working as I would expect

sheepdemon

New Member
Joined
Nov 30, 2022
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I have a list of entries in a table, and I'm trying to use Advanced Filtering to filter this list in place. The advanced Filtering criteria are in a second sheet and I have them setup as follows :

<>Get*
<>List*

As I understand it this should filter out any entry beginning with "List..." and "Get...". However when I apply this filter to the column I want to apply the filtering on every entry is removed, even entries which do not start with "Get" or "List". I'm not sure if I need to do something specific because of these being 2 seperate criteria, or something.

Any hints, more info can be supplied if required.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
You need to structure your query differently:

Book2
ABCDE
1
2
3Group1Group2
4ListIJNGetPSA
5GetXRMGetLNI
6UWCVEYLJAX
7OQTMVZVCFN
8XMWPWKDLNH
9COXINZLILL
10RVJGXEWBVW
11GetADBGetVCK
12GetTOAListNZH
13ListRFIGetPEU
14GetRBBGetCOQ
15ListINIListYDW
16GetSJFListEAI
17GetDBOGetKYH
18GetIIVListOID
19
20
21Group1Group1Group1
22<>Get*<>Get*<>List*
23<>List*
24
25Group1Group2Group1Group2
26ListIJNGetPSAMHBHWQVMLJ
27GetXRMGetLNIPQWNZMINJA
28HLPHFRFKAJDJYVYJXXTW
29TYMBYBLICJXIMWTFKGCM
30ASIIRVSZCDIIDEGFIQDU
31UVWBEBJPQF
32WLUQKJJOJM
33GetADBGetVCK
34GetTOAListNZH
35ListRFIGetPEU
36GetRBBGetCOQ
37ListINIListYDW
38GetSJFListEAI
39GetDBOGetKYH
40GetIIVListOID
Sheet1
Cell Formulas
RangeFormula
D22,A22D22="<>"& "Get*"
E22,A23E22="<>"& "List*"
 
Upvote 0
The list I am trying to filter :

1709220479024.png


As you can see there are entries over the "List" / "Get" on here. The Filtering Criteria I have on another sheet :

1709220531819.png


And the Advanced Filter I'm setting up :

1709222170820.png


This is resulting in everything on the list being filtered, and I don't understand why.
 
Upvote 0
You need to structure your query differently:

Book2
ABCDE
1
2
3Group1Group2
4ListIJNGetPSA
5GetXRMGetLNI
6UWCVEYLJAX
7OQTMVZVCFN
8XMWPWKDLNH
9COXINZLILL
10RVJGXEWBVW
11GetADBGetVCK
12GetTOAListNZH
13ListRFIGetPEU
14GetRBBGetCOQ
15ListINIListYDW
16GetSJFListEAI
17GetDBOGetKYH
18GetIIVListOID
19
20
21Group1Group1Group1
22<>Get*<>Get*<>List*
23<>List*
24
25Group1Group2Group1Group2
26ListIJNGetPSAMHBHWQVMLJ
27GetXRMGetLNIPQWNZMINJA
28HLPHFRFKAJDJYVYJXXTW
29TYMBYBLICJXIMWTFKGCM
30ASIIRVSZCDIIDEGFIQDU
31UVWBEBJPQF
32WLUQKJJOJM
33GetADBGetVCK
34GetTOAListNZH
35ListRFIGetPEU
36GetRBBGetCOQ
37ListINIListYDW
38GetSJFListEAI
39GetDBOGetKYH
40GetIIVListOID
Sheet1
Cell Formulas
RangeFormula
D22,A22D22="<>"& "Get*"
E22,A23E22="<>"& "List*"
I only have one list, and i was hoping to apply both criteria to that list. Is that even possible? Ideally multiple criteria but I was starting with 2 to ensure it worked, which clearly it did not.
 
Upvote 0
I cannot filter when the criteria range is on a different workbook.
But you cannot filter two "not equals to" mutually exclusivve items. You'll get everything.
You have to have them on the same line.
 
Upvote 0
I only have one list, and i was hoping to apply both criteria to that list. Is that even possible? Ideally multiple criteria but I was starting with 2 to ensure it worked, which clearly it did not.
the second example in my first post does that.
And you have not acknowleged if the formula structure I suggested worked or did not work.
 
Upvote 0
Okay, I got it to work with criteria on a different sheet. I used the structure I told you above in POST2.
Before filter:
(note, I errored while copying the xl2bb data range, this starts at cell A2, be sure you paste appropriately).

Book2
ABCDEFGH
2
3Correlaton IDOperation NameStatusEvent CatLevelTimeSubscription
4ListIJNGetPSASucceededAdmin413:00:00RSDRP
5GetXRMGetLNIStartedAdmin411:00:00CYLZC
6UWCVEYLJAXStartedAdmin410:00:00RZTKI
7OQTMVZVCFNSucceededAdmin412:00:00JINGR
8XMWPWKDLNHSucceededAdmin416:00:00PMDXV
9COXINZLILLStartedAdmin415:00:00KIXQE
10RVJGXEWBVWStartedAdmin410:00:00OKOCD
11GetADBGetVCKStartedAdmin410:00:00UFESX
12GetTOAListNZHSucceededAdmin409:00:00LRIRG
13ListRFIGetPEUStartedAdmin410:00:00ZBHVK
14GetRBBGetCOQSucceededAdmin413:00:00IYNPQ
15ListINIListYDWSucceededAdmin410:00:00PSBOY
16GetSJFListEAISucceededAdmin415:00:00CGMDF
17GetDBOGetKYHSucceededAdmin410:00:00SKVRR
18GetIIVListOIDSucceededAdmin411:00:00QPHJX
Sheet1


Filter Criteria:
1709224178842.png



Result:

Book2
ABCDEFG
1
2
3Correlaton IDOperation NameStatusEvent CatLevelTimeSubscription
6UWCVEYLJAXStartedAdmin410:00:00RZTKI
7OQTMVZVCFNSucceededAdmin412:00:00JINGR
8XMWPWKDLNHSucceededAdmin416:00:00PMDXV
9COXINZLILLStartedAdmin415:00:00KIXQE
10RVJGXEWBVWStartedAdmin410:00:00OKOCD
19
Sheet1




I also got it to work with copy to a new location:


Book2
ABCDEFG
1
2
3Correlaton IDOperation NameStatusEvent CatLevelTimeSubscription
4ListIJNGetPSASucceededAdmin413:00:00RSDRP
5GetXRMGetLNIStartedAdmin411:00:00CYLZC
6UWCVEYLJAXStartedAdmin410:00:00RZTKI
7OQTMVZVCFNSucceededAdmin412:00:00JINGR
8XMWPWKDLNHSucceededAdmin416:00:00PMDXV
9COXINZLILLStartedAdmin415:00:00KIXQE
10RVJGXEWBVWStartedAdmin410:00:00OKOCD
11GetADBGetVCKStartedAdmin410:00:00UFESX
12GetTOAListNZHSucceededAdmin409:00:00LRIRG
13ListRFIGetPEUStartedAdmin410:00:00ZBHVK
14GetRBBGetCOQSucceededAdmin413:00:00IYNPQ
15ListINIListYDWSucceededAdmin410:00:00PSBOY
16GetSJFListEAISucceededAdmin415:00:00CGMDF
17GetDBOGetKYHSucceededAdmin410:00:00SKVRR
18GetIIVListOIDSucceededAdmin411:00:00QPHJX
19
20
21
22Correlaton IDOperation NameStatusEvent CatLevelTimeSubscription
23UWCVEYLJAXStartedAdmin410:00:00RZTKI
24OQTMVZVCFNSucceededAdmin412:00:00JINGR
25XMWPWKDLNHSucceededAdmin416:00:00PMDXV
26COXINZLILLStartedAdmin415:00:00KIXQE
27RVJGXEWBVWStartedAdmin410:00:00OKOCD
Sheet1
 
Upvote 0
Solution
Hi,

Apologies for delay in updating, Friday was a nightmare and then the weekend happened.

Your suggestion worked perfectly.

Thanks,
 
Upvote 0
I'm happy it worked for you.

One thing to reduce keystrokes is you could write your criteria formulas a little differently
="<>"& "Get*" could be: ="<>Get*"
="<>"& "List*" could be: ="<>List*"

I have not tried them, but you're welcome to.

Regardless, Best Wishes!
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

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