How to Use an Advanced Filter If the Criteria Range Contains Text in Excel – 5 Methods

This is the sample dataset.

Advance Filter Text Criteria

 


Method 1 – Using an Advanced Filter for a Cell That Contains Unique Text Values

The dataset contains duplicate values.

Steps:

  • Click the Data tab and choose Advance Filter or press ALT+A+Q

Advance Filter Text Criteria unique data

  • In the dialog box, select Copy to another location.
  • In List range, enter $B$4:$E$14.
  • In Copy to, select a cell to copy the unique values.
  • Check Unique records only.
  • Click OK.

Advance Filter Text Criteria unique dataset

This is the output.

There are no duplicate values, only unique text records.


Method 2 – Using an Advanced Filter for Cells Whose Values are Exactly Equal to the Text Criteria

To extract data for a name that contains Brad and has a Sales value greater than $50.

Steps:

  • Create a similar dataset, as shown below.

  • Go to the Data tab and click Advance Filter or press ALT+A+Q.

Advance Filter Text Criteria exact match

 

  • In the dialog box, select Copy to another location.
  • In List range, enter $B$4:$E$14.
  • Enter the Criteria range.
  • In Copy to, select a cell.
  • Click OK.

Advance Filter Text Criteria exact text match

This is the output.

 


Method 3: Using an Advanced Filter for Text Values with Wildcard Characters

3.1: Filter Cells That Begin with a specific Text

To extract names that begin with Leo.

Steps:

  • Create a similar dataset, as shown below.

Advance Filter Text Criteria Begin With

  • Enter an asterisk after Leo.
  • Press ALT+A+Q or go to the Data tab and select Advanced Filter.

Advance Filter Text Criteria asterisk

  • Select Copy to another location.
  • Enter the List Range.
  • Enter the Criteria range.
  • In Copy to, select a cell.
  • Click OK.

Advance Filter Text Criteriawildcard character

This is the output.


3.2: Filter Cells Using a Question Mark

Filter the items that start with Sh, have another letter after it and include rt.

Steps:

  • Create a similar dataset, as shown below.

This is the output.


Method 4 – Using an Advanced Filter and the AND Rule for Text Values

Extract data with the name Leo and the item pant.

Steps:

  • Create a similar dataset, as shown below.

  • Press ALT+A+Q.

Advance Filter Text Criteria AND rule

  • Select Copy to another location.
  • Enter the List Range.
  • Enter the Criteria range.
  • In Copy to, select a cell.
  • Click OK.

This is the output.


Method 5 – Using an Advanced Filter with the OR Rule for Text Criteria

Find the name Brad or the Items Shirt, Shorts or Trouser.

Steps:

  • Create a similar dataset, as shown below.

Advance Filter Text Criteria OR logic

This is the output.


Practice Section

Practice here.

Advance Filter Text Criteria


Download Practice Workbook


<< Go Back to Advanced Filter | Filter in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mahbubur Rahman
Mahbubur Rahman

MAHBUBUR RAHMAN is a leather engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SPSS, STATA, Deep Neural Networks, and Machine Learning. Holding a B.Sc in Leather Engineering from Khulna University of Engineering & Technology, he's shifted to become a content developer. In this role, he crafts technical content centred around Excel... Read Full Bio

2 Comments
  1. Hi, I have two queries.
    1. How to use advanced filter by the criteria of Date? I mean if I want to filter data of a certain month how can it be done by using advanced filter?

    2. How to use advanced filter by the contains criteria? suppose if I want to filter data which contains ‘letter A’ or have ‘5’ how can it be done?

    thank you.

    • Hi Shilpa, thanks for the response. Here’s the solution to your question no 1

      You can simply create a criteria similar to the methods of this article using dates. Suppose you want to see the sales information after May. Please watch the following image for the process. I created the criteria in G6 cell.

       

      In order to solve the second question of your comment, please apply the method described in the Section 3.2 of this article.
      Hope this helps to solve your queries.

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo