How to Filter Data in Excel: A Practical Guide

Learn to filter Excel data by values, text, numbers, dates, color, and multiple criteria, plus use FILTER and SUBTOTAL formulas.

Filtering in Excel hides rows that do not match your criteria and keeps the matching records visible. Unlike sorting, it does not rearrange the list. You can narrow a report to one region, find orders above a threshold, show dates from the current month, or combine several conditions.

Excel offers two distinct filtering methods. AutoFilter works directly on a range or Table and temporarily hides rows. The FILTER function produces a separate, dynamic result in another part of the worksheet. This guide shows when and how to use both.

Choose the filtering method that fits the task

Method What it does Best for
AutoFilter Hides nonmatching rows in the source range or Table Interactive review, quick checks, and temporary views
Excel Table filters Adds AutoFilter controls to a structured range that expands with new rows Lists that are updated regularly
FILTER function Returns matching records as a separate spilled array Live reports, dashboards, and reusable criteria cells
Advanced Filter Uses a criteria range and can copy results to another location Special criteria patterns and one-time extracts

This article focuses on AutoFilter and the FILTER function, the two methods most readers need for everyday lists.

Prepare a clean data range

Filters work most reliably when the data is rectangular: one header row, one field per column, and one complete record per row. Avoid blank rows or columns inside the list, merged cells in the header area, and mixed data types within a column.

The examples use this order log in A1:G9:

Order ID Region Product Order date Units Revenue Status
OR-201NorthNotebook3 Sep 202612540Open
OR-202SouthCable4 Sep 202630450Shipped
OR-203EastMonitor6 Sep 202681440Open
OR-204NorthMouse7 Sep 202625625Backorder
OR-205WestNotebook9 Sep 202618810Shipped
OR-206EastCable11 Sep 202640600Open
OR-207SouthMonitor13 Sep 20265900Backorder
OR-208NorthCable15 Sep 202622330Open

Remember: filtering hides complete worksheet rows; it does not delete their contents. A filtered workbook can therefore contain records that are not currently visible.

Turn on AutoFilter and select values

To show only North region orders:

  1. Select any cell inside the order log.
  2. Choose Data > Filter. Excel adds a filter arrow to each header.
  3. Open the arrow in the Region header.
  4. Clear (Select All), select North, and choose OK.
  5. Check the row numbers and Region values to confirm that only the intended records remain visible.

The sample now shows orders OR-201, OR-204, and OR-208. The other rows still exist; Excel has only hidden them from the current view.

You can also type in the filter menu’s Search box instead of scanning a long checklist. The asterisk * represents any sequence of characters, while the question mark ? represents one character. For example, *book* finds text containing “book.” Use a tilde before a wildcard when you need the literal character, such as ~*.

Combine filters across columns

Filters applied to different columns work together as an AND rule. After filtering Region to North, open the Status filter and select Open. Excel shows rows where Region is North and Status is Open: OR-201 and OR-208.

The checklist in a single column works differently. Selecting North and East in the Region menu means North or East because a cell can match either selected value. This distinction is useful:

  • Several values selected in one column create an OR choice.
  • Filters placed on separate columns combine as AND conditions.

As filters accumulate, the filter icon in each affected header identifies the columns restricting the view. Open that menu to inspect or clear the column’s rule.

Filter text, numbers, and dates by condition

The available menu changes according to the column’s data type. Microsoft documents Text Filters, Number Filters, and Date Filters in its range and table filtering guide.

Text conditions

Open the Product filter and choose Text Filters. Options include Equals, Does Not Equal, Begins With, Ends With, Contains, and Does Not Contain. Use Contains with note, for example, to display Notebook records without typing the complete value.

Number conditions

Open the Units filter and choose Number Filters. To show orders from 10 through 25 units, choose Between, enter 10 and 25, then select OK. You can also use Greater Than, Less Than, Above Average, Below Average, and Top 10.

Despite its label, the Top 10 filter can return a different number of items or a percentage. It ranks the original list rather than the visible subset produced by another column’s filter.

Date conditions

A column containing valid Excel dates offers options such as Before, After, Between, This Month, Last Month, and Year to Date. Dynamic choices such as Today or This Week can return different rows when the date changes and the filter is reapplied.

If Excel displays Text Filters instead of Date Filters, the dates may be stored as text. Convert them to valid date values before filtering; changing only the display format does not necessarily convert the underlying text.

Use two conditions in one column

A Custom AutoFilter can apply two tests to the same field. To display revenue from 500 through 900:

  1. Open the Revenue filter.
  2. Choose Number Filters > Custom Filter or Between, depending on the Excel interface.
  3. Set the first test to is greater than or equal to 500.
  4. Select And.
  5. Set the second test to is less than or equal to 900, then choose OK.

Use And when both comparisons must be true. Use Or when either test can be true—for example, revenue below 400 or above 1,000.

Filter blanks, colors, and icons

If a column contains empty cells, its checklist includes (Blanks). Select only that entry to locate incomplete records, or clear it to exclude empty values.

Excel can also filter by cell color, font color, or conditional-formatting icon. Open the relevant column’s menu, choose Filter by Color, and select the format to keep visible. This works best when the formatting has a consistent meaning. A dedicated Status or Priority column is usually easier to validate than color alone.

Convert the range to an Excel Table

For a list that grows, an Excel Table is safer than a fixed range. Select the data and choose Insert > Table, then confirm that the table has headers. Filter controls appear automatically, and the table expands when you append records directly below it.

Table filters and sort criteria are saved with the workbook. They can be reapplied after data is added, changed, deleted, or recalculated.

Count and total only visible rows

A regular SUM still includes values in filtered-out rows. Use SUBTOTAL when a summary should respond to the filter.

This formula counts visible, nonblank Order IDs:

=SUBTOTAL(103,A2:A9)

This formula adds revenue from visible rows:

=SUBTOTAL(109,F2:F9)

Filtered-out rows are excluded by SUBTOTAL. Function numbers in the 100 series, including 103 and 109, also exclude rows hidden manually. Microsoft’s SUBTOTAL reference lists the available operations and function numbers.

Clear, reapply, or remove filters

These commands have different effects:

  • Clear one column: open its filter menu and choose Clear Filter From followed by the column name.
  • Clear all criteria: choose Data > Clear. All rows reappear, but the filter arrows remain.
  • Remove AutoFilter: choose Data > Filter again. The arrows disappear.
  • Reapply: choose Data > Reapply after source values or formula results change.

A filter does not always refresh merely because a cell value changed. Reapply it when an edited value, a new row, or recalculation should alter which records qualify. Microsoft provides the current commands in its guide to reapplying and clearing filters.

Copy only the visible filtered rows

Copying a filtered range can include hidden cells in some Excel workflows. In the Windows desktop app, use this explicit method when only visible records should be copied:

  1. Select the filtered range.
  2. Choose Home > Find & Select > Go To Special.
  3. Select Visible cells only and choose OK.
  4. Copy the selection, choose the upper-left destination cell, and paste.

Excel for the web does not offer the same visible-cells-only command for an ordinary range. Microsoft notes that a filtered Excel Table can be copied with only its visible cells, or the workbook can be opened in the desktop app. See Copy visible cells only for platform-specific instructions.

Create a dynamic result with FILTER

AutoFilter hides rows in the original list. The FILTER function leaves that list untouched and returns matching rows in a separate spill range. It is available in Microsoft 365, Excel 2021, and Excel 2024 on supported platforms.

Enter a region in J2, then place this formula in an empty area:

=FILTER(A2:G9,B2:B9=J2,"No matches")

The first argument is the returned data. The second creates a row-by-row TRUE/FALSE test, and the third supplies a readable result when nothing matches. Leave enough empty space for the output or Excel will return #SPILL!.

Require multiple conditions

Enter a minimum unit count in K2. Multiplication makes both conditions mandatory:

=FILTER(A2:G9,(B2:B9=J2)*(E2:E9>=K2),"No matches")

This returns rows where the Region matches J2 and Units are at least the value in K2.

Allow either condition

Enter a status in L2. Addition creates an OR test:

=FILTER(A2:G9,(B2:B9=J2)+(G2:G9=L2),"No matches")

This returns a row when its Region matches J2 or its Status matches L2. To sort the matching records by Revenue from highest to lowest, nest the result inside SORT:

=IFERROR(SORT(FILTER(A2:G9,B2:B9=J2),6,-1),"No matches")

If your regional settings use semicolons as formula argument separators, replace the separating commas with semicolons. Microsoft’s FILTER function reference documents its syntax, supported versions, and spill behavior.

Fix common filtering problems

Problem Likely cause Fix
The wrong filter category appears Numbers, dates, and text are mixed in one column. Convert the column to one consistent data type, then reapply the filter.
New records are missing The filter range does not include them. Expand the range or use an Excel Table, then reapply.
A known value is absent from the checklist The menu displays only the first 10,000 unique entries. Use the Search box or a Text, Number, or Date condition instead of relying on the checklist.
Rows stay hidden after clearing one column Another column still has an active filter. Look for filter icons in other headers or clear all criteria.
The visible results are stale Source data or formula results changed after the filter was applied. Use Reapply.
#CALC! from FILTER No record matches and the optional empty-result argument was omitted. Add a third argument such as "No matches".
#SPILL! from FILTER Existing content or merged cells block the result area. Clear the outlined spill range or move the formula.

Frequently asked questions

Does filtering delete rows?

No. AutoFilter temporarily hides rows that fail the criteria. Clear the filter to display them again.

Why do my second-column choices seem limited?

After one column is filtered, Excel bases the next column’s available choices on the currently visible records. Clear or change the earlier filter if you need a value outside that subset.

Can I filter by more than one column?

Yes. Apply a filter to each relevant header. Conditions in different columns combine as AND rules, so a row must satisfy every active column filter.

What is the difference between Filter and FILTER?

The Ribbon’s Filter command hides nonmatching rows in the source. The FILTER worksheet function returns matching rows as a separate dynamic array and updates when its inputs recalculate.

Why does SUM include hidden filtered rows?

SUM evaluates the referenced values whether their rows are visible or not. Use SUBTOTAL when the result should exclude filtered-out rows.

Build filters that remain trustworthy

Start with a clean list and decide whether you need a temporary view or a separate output. AutoFilter is fast and interactive; an Excel Table helps the filtered source expand; FILTER is better for a live report elsewhere on the sheet.

Before using or sharing the results, check the filter icons, confirm the visible row count, and remember that hidden records still exist. Those small checks keep an apparently tidy view from masking incomplete or outdated criteria.