Excel AutoFilter: A Complete Guide

In this article, you will learn about Excel AutoFilter. From enabling AutoFilter to applying different criteria, you will find them here. Filtering highest/lowest values, filtering by color, and specific date range, we have included almost everything regarding AutoFilter in this article.

Users mostly apply AutoFilter to analyze and explore data based on specific criteria. With this feature, users can apply multiple filters to different columns simultaneously. This flexibility allows for complex filtering scenarios and facilitates customized data analysis. By using it, users can save time and effort compared to manually sorting and filtering data.

Overview Image of Excel AutoFilter


Download Practice Workbook

Download this file to practice with the article.


How to Enable AutoFilter in an Excel Dataset

1. Apply Filter from Home Tab

  • First, select any cell inside your range. We selected cell F7.
  • From the Editing group of the Home tab, select Sort & Filter.
  • Finally, choose Filter to apply.

Apply Filter from Home tab

You can see the Filter buttons in the header column.

Filter applied to dataset


2. Apply Filter from Data Tab

  • Select any cell inside your range. We selected cell F7.
  • From the Sort & FIlter group of the Data tab, select Filter.

Apply Filter from Data tab

You can see the Filter buttons in the header column.

Filter buttons applied from Data tab


3. Use a Keyboard Shortcut to Enable Filter

  • Select cell D7 inside your range.
  • Press Ctrl + Shift + L to apply the filter.

Apply Filter using keyboad shortcut

You can see the Filter buttons in the header column.

Filter buttons from keyboard shortcut


How to Apply AutoFilter to One Column/Criteria in Excel

We want the product details that are delivered only in the North region.

  • Click the Filter button beside Delivery Region.
  • Now, check the North option and press OK.

Apply AutoFilter to one column

You will see all the products that are sent to other regions except North are hidden.

Filtered data with one criterion


How to Apply AutoFilter for Two or More Criteria in Excel

We want the product details with the following criteria.

  1. Delivery region: North,
  2. Delivered value over $6000,
  3. Delivery status: Delivered.
  • Click the Filter button beside Delivery Region.
  • Now, from the selection of unique data, select North and press OK.

Apply AutoFilter to multiple criteria

  • Next, click the Filter button beside Product Price.
  • From Number Filters, select Greater Than.

Applying Number Filters

  • In the Custom AutoFilter dialog box, put the desired number. We are inserting 6000.
  • Press OK to apply.

Custom Autofilter to insert criteria value

  • To filter the delivery status, click the Filter button beside Delivery Status.
  • Uncheck Pending to filter only the delivered products and press OK.

Applying the last criteria

Finally, you will be left with the data that fulfills your criteria.

Final output of multiple criteria filter


How to Filter Highest and Lowest Values in Excel

1. AutoFilter Highest Values

  • Click the Filter button next to Product Price.
  • From Number Filters, select Top 10.

Selecting top 10 to get highest values

  • In the middle box, choose the number of highest values you want. We insert 5.
  • Press OK to apply changes.

Inserting number of highest values

You will see the 5 highest valued products after the filter.

Filtered Top 5 values


2. AutoFilter Lowest Values

  • Click the Filter button next to Product Price.
  • From Number Filters, select Top 10.

Selecting top 10 to get lowest values

  • In the left box, choose Bottom to get the lowest prices.
  • In the middle box, choose the number of lowest values you want. We input 5 here.
  • Press OK to apply changes.

Inserting number of lowest values

You will see the 5 lowest valued products are filtered out.

Filtered bottom 5 values


How to Filter by Color in Excel

1. Filter by Font Color

We set the font color of the status Pending as red and Delivered as green.

Dataset with colored fonts

  • Click the Filter button next to Delivery Status.
  • Choose Filter by Color and select red to see the Pending items.

Choosing color criteria to filter data

As you can see, the Pending items are filtered out leaving the Delivered items hidden.

Filtered data based on font color


2. Filter by Cell Color

The cells with Pending status are colored red and Delivered are colored green.

Dataset with colored cell

  • Click the Filter button next to Delivery Status.
  • Choose Filter by Color and select green to see the Delivered items.

Choosing Filter by color to filter data

As you can see, the Delivered items are filtered out leaving the Pending items hidden.

Filtered data based on cell color


How to Filter for a Specific Date Range in Excel

We want the product lists that are delivered or will be delivered between 10 June 2023 to 15 June 2023.

  • Click the Filter button next to Delivery Date.
  • From Date Filters, select the Between option.

Selecting Date Filters to filter between specific date range

  • Insert the dates in the Custom Autofilter dialogue box and then press OK.

Inserting dates

  • You will find the products listed for delivery within those dates.

Filtered data within date range


How to Use AutoFilter with Search Box in Excel

We want to find the product’s name with the word Oil in it.

  • Click the Filter button next to Product.
  • In the Search Box, type Oil and press OK.

AutoFilter with search box

Just like you typed, products with the word Oil in their names are filtered out.

Output of AutoFilter with search box


How to Filter Blank Cells in Excel

There are two blank rows in our dataset.

Blank cells in the dataset

  • Click the Filter button next to Delivery Region.
  • Uncheck Blanks and press OK.

Filtering blank cells

As you can see, the blank rows are hidden now.

Output of Blank cells filter


How to Use Custom AutoFilter in Excel

1. Filter for One Criterion

We want to see the region names with th at the end.

  • Click the Filter button next to Delivery Region.
  • From Text Filters, choose Custom Filter.

Text filtering using Custom Filter

  • In the Custom Autofilter, from the left drop-down menu, choose ends with and type th in the box.
  • Finally, press OK.

Inserting single criteria in Custom AutoFilter window

As you can see, North and South regions have been filtered.

Custom AutoFilter with single criterion output


2. Custom Filter for Two Criteria

We have two criteria to filter our dataset.

1. Product name with Oil,

2. Product name with Jar.

  • Click the Filter button next to Product.
  • From Text Filters, choose Custom Filter.

Text filtering using Custom Filter for two criteria

  • In the Custom Autofilter, from both the left drop-down menus, choose contains and type Oil and Jar in the boxes. Also, check the Or option.
  • Finally, press OK.

Inserting both criteria in Custom AutoFilter

As you can see, products with the words Oil or Jar in their names are filtered out.

Custom AutoFilter with two criteria output


3. Custom Number AutoFilter

We want to filter products that are priced greater than $6500 and less than $15000.

  • Click the Filter button next to Product Price.
  • From Number Filters, select Custom Filter.

Number filtering using Custom Filter

  • In the left drop-down boxes, choose is greater than and is less than. And in the right boxes, insert the upper limit and lower limit of prices with And criteria.
  • Press OK to apply changes.

Inserting number filter criteria

The filtered data are shown below.

Output of Custom number filter


How to Delete Filtered Rows in Excel

We want to delete the delivered products from the list.

  • Click the Filter button next to Delivery Status.
  • Uncheck Pending to select Delivered products and then press OK.

Choosing filter criteria to delete rows

  • Now, select the filtered rows and go to Cells group and select Delete Sheet Rows from the Delete drop-down menu.

Deleting rows based on filtering criteria

  • As you can see, the delivered items have been deleted.
  • Again, click the Filter button and check Pending to show the rest of the rows.

Unhiding the rest of the rows

These are the rows that are left after deleting the delivered items.

Dataset after deletion


How to Clear AutoFilter in Excel

1. Clear A Specific Filter

  • Click the Filter button in the Delivery Status.
  • Then choose Clear Filter from “Delivery Status” and click on OK.

Clearing a specific filter

You can see the whole dataset without any filter.

Dataset after clearing filter criteria


2. Clear All Filters

  • To remove Filter altogether, deselect the Filter option from the Sort & Filter of Home tab.

Removing Filter button

You can see the dataset without Filter buttons.

Dataset after removing filter


How to Update an AutoFilter

  • To update Filter after adding or removing data, choose Reapply from the Sort & Filter drop-down menu.

Reapplying Filter to update filter


Filter not Working in Excel

  • Reapply Filter. Look at previous method to see how.
  • Clear out all Filter. Then apply again.

Frequently Asked Questions

1. Can I use Wildcards with AutoFilter in Excel?

Ans: Yes, you can use Wildcards with AutoFilter in Excel. You can use the asterisk (*) as a wildcard to represent any number of characters and the question mark (?) to represent a single character in your filter criteria.

2. Can I filter by text length using AutoFilter in Excel?

Ans: No, you cannot directly filter by text length using AutoFilter in Excel. AutoFilter allows filtering based on specific values, but it does not provide an option to filter by the length of text in a column. You would need to use other functions or techniques to achieve this type of filtering.

3. How do I sort data using AutoFilter in Excel?

Ans: Select the range of data you want to sort.

  • Go to the Data tab and click on the Filter button to enable AutoFilter.
  • Click on the dropdown arrow in the column header you want to sort.
  • In the dropdown menu, select Sort A to Z (ascending) or Sort Z to A (descending). The data will be sorted based on your selection.

Conclusion

Excel AutoFilter is an amazing tool that allows users to filter data with great proficiency. It enables quick and flexible data analysis by providing a dropdown menu for each column, where users can choose specific criteria or apply custom filters. We covered everything there is to know about AutoFilter. After this, we expect you to filter your data with ease and without any trouble.


Excel AutoFilter: Knowledge Hub


<< Go Back to Filter in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mehedi Hassan
Mehedi Hassan

Mehedi Hassan, having earned a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, functions as an Excel & VBA Content Developer at ExcelDemy. His deep interest in research and innovation aligns seamlessly with his fervor for Excel. In this role, Mehedi not only skillfully addresses challenging issues but also exhibits enthusiasm and expertise in gracefully navigating intricate situations, emphasizing his unwavering dedication to consistently delivering outstanding content. His interests are Advanced... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo