Excel filters let you hide rows that don't match what you're looking for, so you work with a smaller, clearer dataset

A filter in Excel temporarily hides rows based on rules you set. If you have a spreadsheet with 500 customer records and you only want to see orders from January, a filter shows just those rows and hides the rest. The hidden rows are still there — you haven't deleted anything — and you can remove the filter anytime to see everything again.

Filters work on columns. You pick a column header, tell Excel which values to keep, and it does the hiding for you. This is different from sorting, which rearranges rows. Filtering just removes the ones you don't need right now.

Key Takeaways

  • Select your data range and turn on AutoFilter from the Data tab to add filter buttons to each column header.
  • Click the filter button in any column, check the boxes next to the values you want to see, and uncheck the rest.
  • You can filter multiple columns at once — Excel shows only rows that match all your rules.
  • Remove a filter by clicking the filter button again and selecting "Clear Filter", or turn off AutoFilter entirely to remove all filter buttons.

How to turn on AutoFilter in three steps

AutoFilter adds a small dropdown button to each column header. Click the button to see your filter options.

First, select any cell in your data range — it doesn't have to be the header row. Then go to the Data tab at the top of the ribbon. Click AutoFilter. Excel automatically detects your data range and adds a dropdown arrow to each column header.

If you select a specific range before turning on AutoFilter, Excel filters only that range. If you click AutoFilter without selecting anything, it applies to the entire sheet. Either way works; it depends on whether your sheet has multiple separate tables.

Filtering by checking and unchecking values

Click the dropdown arrow in any column header. A menu appears showing every unique value in that column, each with a checkbox. By default, all boxes are checked — meaning all rows are visible.

Uncheck the values you want to hide. For example, if the column contains months and you only want to see January data, uncheck February, March, April, and so on. Then click OK. Excel hides every row where that column contains a value you unchecked.

The dropdown arrow changes color (usually blue) when a filter is active on that column, so you can see at a glance which columns have filters applied. To remove the filter from one column, click its dropdown arrow again, check "All", and click OK.

Filtering multiple columns at once

You can filter on more than one column, and Excel shows only rows that match all your rules. Say you have a sales table with columns for Region, Month, and Product. You could filter Region to show only "West", then filter Month to show only "January". Excel then displays only rows where Region is West and Month is January.

Each filter you add narrows the results further. If you filter three columns, the spreadsheet shows only rows matching all three conditions. Remove any filter by clicking its dropdown arrow and selecting "Clear Filter" for that column.

Using text filters for partial matches

The basic filter shows exact matches: if you uncheck "Apple", you hide all rows with exactly "Apple" in that column. But sometimes you want to find rows that contain a word, or start with certain letters, or don't match a value.

Click the dropdown arrow and select Text Filters (or Number Filters if the column contains numbers). A submenu appears with options like "Contains", "Begins With", "Ends With", and "Does Not Equal". Choose the one you need, enter the text or number you're looking for, and click OK. For example, "Contains apple" would show rows with "apple pie", "apple juice", and "pineapple" all together.

Removing filters and turning AutoFilter off

To remove a filter from one column, click its dropdown arrow and select Clear Filter. That column goes back to showing all rows, but other filters stay active.

To remove all filters at once and see your entire dataset again, go to the Data tab and click AutoFilter again. This turns off AutoFilter completely and removes all the dropdown arrows from the headers. Your data is unchanged; you're just removing the filter interface.

If you want to keep AutoFilter on but temporarily see all rows, you can clear each filter individually without turning off AutoFilter. This is useful if you think you'll filter again in a moment.

What happens to formulas and sorting when you filter

Formulas in your spreadsheet keep working when you filter. If you have a SUM formula that adds up a column, it will sum only the visible (filtered) rows, not the hidden ones. This is usually what you want — if you're looking at January sales only, you probably want the total for January only.

If you sort your data (rearrange rows by a column) and then apply a filter, the sort order stays. The filter just hides rows; it doesn't undo the sort. You can sort and filter together without either one interfering with the other.

Frequently Asked Questions

Can I save a spreadsheet with filters on?

Yes. When you save the file, Excel remembers which filters you set. The next time you open it, the filters are still there and the data is still filtered. If you want to share the file with someone who needs to see all the data, turn off AutoFilter before saving.

What if I filter a column and see no rows?

This means no rows match your filter rules. Check that you didn't accidentally uncheck all the values, or that your text filter isn't too strict. Click the dropdown arrow and review what you selected. You can also click "Clear Filter" to start over.

Can I filter by color or formatting?

Yes, if your cells are colored or formatted. Click the dropdown arrow, select Filter by Color, and choose the color you want to see. This works for cell background color and text color, depending on your version of Excel.

Do filters work on merged cells?

Filters work best on normal cells. If you have merged cells in your header row, AutoFilter may not recognize the column properly. Unmerge the header cells before turning on AutoFilter.

Can I copy only the filtered rows to another sheet?

Yes. Select all the visible (filtered) rows and columns, copy them, and paste them into a new sheet. Excel copies only what you see — the hidden rows are not included. This is a quick way to create a new dataset with just the data you need.