How to Use Autofilter in Excel

If you just need to use autofilter in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: click inside the header row and choose Data ▸ Filter, then use the drop-down arrows to show only matching rows.

Annotated stepsExcel
1

Click inside the data range.

2

Choose Data ▸ Filter or press Ctrl+Shift+L.

3

Open a header arrow and select values, text filters or date filters.

4

Clear filters before exporting if all rows should be included.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Filters temporarily hide rows that do not match selected criteria. They do not delete data, and formulas may or may not ignore hidden rows depending on the function. Filters work best on a clean table with one header row and no blank rows inside the data. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “use autofilter in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected filter change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a data step that keeps your analysis trustworthy useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A sales table has Region in column B. Turn on Data ▸ Filter, open the Region arrow and select West. Excel hides every non-West row while keeping row numbers blue to signal a filtered view. Filters are the everyday way to inspect subsets without changing the source data. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. The short version of “use autofilter in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

Common mistakes

  • Thinking filtered-out rows were deleted.
  • Filtering a range with blank rows that split the table.
  • Copying visible rows without checking hidden records.
  • Forgetting active filters before totals or exports.

Frequently asked questions

What is the filter shortcut?

Ctrl+Shift+L toggles filters on Windows.

Do filters delete rows?

No. They hide non-matching rows temporarily.

How do I clear filters?

Use Data ▸ Clear or clear each header filter.