How to Use Custom Autofilter in Excel for More Than 2 Criteria

This is our sample dataset.

Showing Sample Dataset

  • We can use the Custom Autofilter to filter data with more than two criteria.

Steps for Custom Autofilter with More Than 2 Criteria

We will filter the records of iPhone 14 that have been sold at equal or greater than $500 as well as equal to or less than $1000.

  • Click on the arrow sign in the Sales

Showing Custom Autofilter Arrow for Sales

  • From the Number Filters, select the Custom Filter

Showing Custom Autofilter Option

The Custom Autofilter window will open.

There are two criteria rows.

  • In the first row, select is greater or equal to in the dropdown box and set 500 in the adjacent box.
  • In the second row, select is less or equal to in the dropdown box and set 1000 in the adjacent box.
  • Press OK.

Assigning 2 Criteria in Custom Autofilter

The Sales that are between $500 and $1000 will be filtered and displayed in the Excel sheet.

We will set another criterion. Suppose, we want to find out all the records of iPhone 14 which have been sold between $500 and $1000.

Click on the Arrowhead in the Product column.

Showing Result with 2 Criteria

In the pop-up window, go to the Text Filter option and Select Custom Filter.

Steps for Custom Autofilter

  • Select equals from the dropdown box and enter iPhone 14 in the adjacent box.
  • Press OK.

Setting Criteria in Custom Autofilter

We will get results based on more than 2 criteria.

Result Output with More Than 2 Criteria


Using FILTER Function for More Than 2 Criteria

We can use the FILTER function to auto-filter with more than 2 criteria.

  • For that, we have taken a dataset of sales reports of an Apple outlet. We want to find out the Sales by Watson with more than 2 criteria.
  • Add another table as shown in the image below.

Dataset to Custom Autofilter with More Than 2 Criteria

Add the following formula in G5:J6 and Press ENTER.

=FILTER(B5:E15,(C5:C15="Watson")*(D5:D15="iPhone 14")*(B5:B15="S0002"))

This formula returns results based on three criteria.

Inserting FILTER Formula to Custom Autofilter with More Than 2 Criteria

The range G5:J6 will show the result based on those three criteria.

FILTER Formula Result


Advanced Autofilter in Excel Using More Than 2 Criteria

In this process, we will create a data table. We have to set a criteria table and we will use the Advanced Filter tool to auto-filter the data table with more than 2 criteria.

  • Create a data table. We have taken sample a data table containing information about the Sales report of an outlet of Apple.

Dataset for Advanced Autofilter

This auto filter requires a criteria table.

  • We have added the single column Sales Rep. with 4 blank cells to set four criteria. You can set the criteria table according to your preference.

Adding Criteria Table for Custom Autofilter

We want to filter the sales report of 4 Sale Reporters.

  • Enter the names of Sales Reporters in the criteria table.

Setting Criteria in Criteria Table

  • Copy the data table B4:E15.
  • Go to the Data ribbon and Select the Advanced filter option from the Sort & Filter section.

Using Advanced Filter for More Than 2 Criteria

In the Advanced Filter window, you can see that the List range has already been selected.

  • We have to set the criteria.
  • Click on the Arrowhead in the Criteria range.

Setting Criteria in Advanced Filter

  • Select the Criteria range as G4:G8 and click on the downward Arrowhead.

Setting Criteria in Criteria range

It will take you to the Advanced Filter window.

  • Click on OK.

Setting Criteria in Advanced Filter

All the Sales records of the 4 sellers will be filtered out.

Showing Result for Custom Autofilter with More Than 2 Criteria

N.B: You can ignore the change in the criteria table.


Custom Autofilter in Excel Using Single Criteria

You can auto-filter the data set on a single criterion.

  • Select your dataset.
  • Go to the Data bar and select the Filter option from the Sort & Filter

Assigning Data into Filter

The Arrow sign will appear on table headings.

  • We will set Product as the criteria. Click on the arrow in the Product heading.

Showing Filter Arrow

  • Enter the product name (ipad) in the Text Product box and press OK.

Setting Single Criteria for Custom Autofilter

Records with the iPad will be filtered out and will be displayed in the spreadsheet.

Showing Result for Custom Autofilter with Single Criteria

 


Download Practice Workbook


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

Get FREE Advanced Excel Exercises with Solutions!
Sourav Kundu
Sourav Kundu

Sourav Kundu, BSc, Naval Architecture & Marine Engineering, Bangladesh University of Engineering and Technology, is a dedicated technical content creator of the ExcelDemy project. He has a keen interest in Excel and he leverages his problem-solving skills to provide solutions on user interface with Excel. In his position as an Excel & VBA Content Developer at ExcelDemy, Sourav Kundu not only adeptly addresses challenging issues but also demonstrates enthusiasm and expertise in navigating complex situations. Apart from creating... Read Full Bio

2 Comments
  1. I have a list of warehouse bins that range from 099A to 15000F. When I use the Custom AutoFilter to only show bins that are in the 2000A range, I use “equals 20??A”

    Problem is, there are locations that are named 200AA, 200BA, and 200CA. I need a way to filter the double letter bins out from this list without using a filter function that pulls the results into new cells. Something like “equals 20??A” and “does not equal *AA; *BA; *CA”

    You know of a way to do this?

    • Hello Ryan,

      To filter the double letter bins out from this list without using a filter function, see if using a range of characters works instead. Then, [0-9] should only match numeric characters. Follow the below steps:

      1. Open the Custom AutoFilter dialog. (Read the article if necessary)
      2. Enter Bin in Filed and type the below condition in Criteria:
      20??[0-9][!A-Z]A

      Here,

      – 20?? matches the first four characters (2000 to 2099).
      – [0-9] matches the fifth character that it’s a numeric digit and not a letter.
      – [!A-Z] matches any character that is not a letter from A to Z, effectively excluding double letters in the fifth and sixth positions.
      – A matches the final “A” in the bin code.

      As a result, the filter criteria will accurately find bins in the 2000A range that have a single numeric digit followed by a single letter “A” at the end, excluding those with double letters like 200AA, 200BA, and 200CA.

      Regards,
      Yousuf Khan Shovon

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo