Contains using advanced filter: order independent and more than two options

cmv88

New Member
Joined
Feb 7, 2018
Messages
2
I'm starting to use the advanced filters for sorting through my lists of academic journal articles. I like the ability to execute OR searches across different columns.

My current issue is trying to apply the advanced filter to find cells that contain, in any order, several strings. For example, I have a column titled "Authors". Perhaps I would like to filter the results to return all articles written by AuthorA AND AuthorB, regardless of whether or not they are first author, second author, etc.

TitleAuthor...
Title1
AuthorA, AuthorB, AuthorC
Title2AuthorC, AuthorB, AuthorA
Title3AuthorC, AuthorA
Title4AuthorA, AuthorB
Title5AuthorA, AuthorC, AuthorB

<tbody>
</tbody>

If I do the following in the advanced filter:
TitleAuthor...
*AuthorA* *AuthorB*

<tbody>
</tbody>

This will return Title1, Title4, and Title5 because AuthorA and AuthorB are in the same order as entered in the advanced filter. However, I also want Title2 to show up as A and B are both authors, but it doesn't. I've tried other formulas, such as ="=*AuthorA* *AuthorB*", etc. and nothing seems to work.

I realize that in this case, I could run a custom text filter because I'm only looking for two criteria, and that would work well. However, what if I want to return cells that contain three authors? Furthermore, it would be nice to integrate this type of filtering with other features in the advanced filter.

Thanks in advance
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to Mr Excel forum

Try this criteria range

Author​
Author​
*AuthorA*​
*AuthorB*​

Hope this helps

M.
 
Upvote 0
Thank you for the suggestion. This appears to work when I enter it as ="=*AuthorA*" and ="=*AuthorB*". It would be nice if it were possible to do it all in one column to maintain the mirror image of the table header and the advanced filter above it, but I understand this may not be achievable.
 
Upvote 0
Thank you for the suggestion. This appears to work when I enter it as ="=*AuthorA*" and ="=*AuthorB*". It would be nice if it were possible to do it all in one column to maintain the mirror image of the table header and the advanced filter above it, but I understand this may not be achievable.

It may be possible using a formula as a criterion, but we need more details to try to create such a solution. A small sample of the data and the criteria would be useful.
For testing purposes, a small sample of the data and the criteria along with the expected results would be useful.

M.
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

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