Skip to main content

How to filter with multiple criteria or wildcard in Excel?

Author: Sun Last Modified: 2024-10-10

For most of Excel users, data filtering based on one criteria may be easy. However, if you want to filter data with multiple criteria, how can you do? This tutorial is talking about how to set multiple criteria and filter data in Excel

Filter with multiple criteria

Filter with wildcard

Easily filter data with multiple criteria or wildcard with Super Filter good idea3


Filter with multiple criteria

Before you reading the detail steps in this part, I have the duty to tell you that filtering with multiple criteria or wildcard by Excel Filter is a little complex because of the not simple multiple criteria setting. If you want to save time, I suggest you go to Easily filter data with multiple criteria or wildcard with Super Filter, which will easy understanding.

Suppose you have a range of data as below screenshot shown, and you want to do some filters on it.
A screenshot showing a dataset in Excel for filtering based on multiple criteria

And vs Or

For example, you want to filter out the data which meets all criteria at the same while, take instance, the data which region is north and the product is banana and the total is larger than 2000. Now you need to list the criteria in the cells as below screenshot shown:

A screenshot showing criteria setup for filtering data

Then you can click Data > Advanced, and in the Advanced Filter dialog, check Filter the list, in-place, and specify the List range and Criteria range. See screenshot:

A screenshot showing the Advanced button on the Data tab on the ribbon
A screenshot showing the Advanced Filter dialog

Click OK. Now you can see the data has been filtered based on the criteria you made.

A screenshot showing filtered data based on multiple conditions

Or otherwise, if you want to filter out the data which just need to meet one of the criteria, take instance, the region is north, or the product is banana, or the total number is larger than 2000, you can list the criteria like this:

A screenshot showing an example of OR criteria for data filtering

Then click Data > Advanced and specify the List range and Criteria range, see screenshot:

A screenshot showing the Advanced Filter dialog

Click OK. Now you can see all data which meets one of the criteria is filtered out.

A screenshot showing filtered data based on one of the multiple conditions


Filter with wildcard

In some cases, you may want to filter data based on a special text string. For example, you have a range of data as below screenshot shown:

A screenshot showing a dataset in Excel for wildcard filtering

The * wildcard

And you want to filter out the data which ends with Market in the Partner column, and you must list this criterion in cells as below screenshot shown:

Tip: the asterisk symbol * stands any character string in its position.

A screenshot showing the filter criteria with the * wildcard in Excel

Then click Data > Advanced, and in the Advanced Filter dialog, specify the List range and Criteria range. See screenshot:

A screenshot of the Advanced Filter dialog with * wildcard criteria

Now click OK, you can see all data ending with Market is filtered out.

A screenshot showing filtered data based on the * wildcard

The ? wildcard

If you want to filtered out the data which only contains a character between two specific text strings, for example, filtered out the data has any character between c and k, you can type the criteria as below:

Tip: The question mark ? represents anyone character in its position.

A screenshot showing the filter criteria with the ? wildcard

Then click Data > Advanced, and in the Advanced Filter dialog, specify the List range and Criteria range. See screenshot:

A screenshot of the Advanced Filter dialog with ? wildcard criteria

Click OK. And you can see the data is filtered out.

A screenshot showing filtered data based on the ? wildcard

The ~ wildcard

If you have a range of data as below screenshot shown:

A screenshot showing a dataset in Excel for wildcard filtering

And you want to filter out the data containing * symbol or other special mark between two specific text strings, you can do as below:

Tip: The tilde ~ mark can help you to search the specific text string.

A screenshot showing the filter criteria with the ~ wildcard

Then click Data > Advanced, and in the Advanced Filter dialog, specify the List range and Criteria range. See screenshot:

A screenshot of the Advanced Filter dialog with ~ wildcard criteria

Click OK to close the dialog, then you can see the data is filtered out:

A screenshot showing filtered data based on the ~ wildcard

Note:

Actually, you also can filter the data by selecting them and clicking Data > Filter and then clicking the filter arrow and select Text Filter or Number Filter > Contains.
A screenshot showing the Text Filter options in Excel for wildcard filtering

Then in the Custom AutoFilter dialog, type the criteria into the text box next to contains. See screenshot:

A screenshot of the Custom AutoFilter dialog in Excel for wildcard filtering

And click OK. The data also can be filtered out correctly.

That are all the criteria settings of Filter function. Is it hard to remember? But if you have Super Filter of Kutools for Excel, you never need to remember the complex criteria, you just need to click, click, click.


Easily filter data with multiple criteria or wildcard with Super Filter

Super Filter is an advanced filtering function of Kutools for Excel, which is easily get and use. You can free download Kutools for Excel and use Super Filter by follow steps. Do not worry, Kutools for Excel is free for 30 days.

Kutools for Excel, equipped with AI 🤖, offers over 300 handy features to simplify your tasks.

After free installing Kutools for Excel, please do as below:

Multiple criteria

1. Click Kutools Plus > Super Filter to enable the Super Filter pane. See screenshot:

A screenshot showing the Kutools Super Filter tool

2. Then you need to click this button Range selection icon to select a range that you want to filter, then check Specified checkbox to fix the range. See screenshot:

A screenshot showing how to specify a range in Kutools Super Filter for filtering data

3. Now begin to filter the data by multiple criteria. Firstly, you need to make sure that the Relationship is OR or AND.

If you want to filter data when the combination of multiple criteria is true, you need AND relationship.

A screenshot showing AND and OR relationships

If you filter data out which only need to meet one of the criteria, you select OR.

4. Then you can list the criteria in the pane.

And and Or

For example, you want to filter data that the region is south, product is apple and the total number is greater than 1100, do as below:

(1) Select AND from the Relationship in Group list and click at the first underline next to And, then set the first criterion you need in the textboxes. See screenshots:

A screenshot showing relationship options in a group A screenshot showing the first criterion setup in Kutools Super Filter

(2) Then set the second and third criteria as above. See screenshot:

A screenshot showing all three criteria set for filtering in Kutools Super Filter

5. Click Filter button then the data is filtered out.

A screenshot showing filtered data using Kutools Super Filter with multiple criteria

If you select OR relationship, you need to make sure that all the relationships are OR. See screenshots:

A screenshot showing OR relationship for multiple criteria in Kutools Super Filter   A screenshot showing filtered data using OR criteria in Kutools Super Filter

Wildcard

In Super Filter function, you also can use wildcard to represent a character or a string of characters or a special symbol.

Take an instance, you want to filter out data which contains supplier, you just need to type *supplier (the asterisk mark means any strings) into the last textbox. See screenshots:

A screenshot showing how to use the * wildcard in Kutools Super Filter   A screenshot showing filtered data based on wildcard criteria

If you need to filter out data which is in this format c?ke, (the question mark means anyone character), you just need to type this into the textbox of Super Filter, and click Filter. See screenshot:

A screenshot showing how to filter data using the ? wildcard in Kutools Super Filter for Excel    A screenshot showing filtered data using the ? wildcard

Is it so easy? If you want to know more about Super Filter, you can free download Kutools for Excel to try it by yourself, there are 60 days of free trail. Actually, Kutools for Excel has more than 100 functions which can make your daily work easier.

Demo: Filter With Multiple Criteria And Wildcard with Kutools for Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

With Super Filter, you also can do:

Filter by asterisk or other special character in Excel

Filter by substring in Excel

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!