To filter rows in Excel, you enable AutoFilter on your data range, then apply criteria to show only rows that match your conditions. This helps you focus on specific subsets of data without deleting or moving anything. You’ll need Excel installed (desktop version; mobile has limited filtering), and your data should be organized in a table with column headers—no blank rows or columns within the dataset.

What You'll Need

  • Microsoft Excel (desktop version: Excel for Microsoft 365, Excel 2021, Excel 2019, or Excel 2016)
  • A workbook with data organized in a contiguous range with clear column headers in the top row
  • At least one blank row below your data (optional but recommended to avoid accidental inclusion in the filter range)

Step-by-Step

  1. Open your Excel workbook and navigate to the sheet containing your data.
  2. Select any single cell *within* your data range (e.g., click inside cell B3 if your data starts at B2 with headers). Do *not* select the entire range—just one cell is enough.
  3. Go to the Data tab on the Excel ribbon at the top of the window.
  4. Click the Filter button in the Sort & Filter group. You’ll see small drop-down arrows appear in each column header cell (e.g., in row 2 if that’s your header row).
  5. Click the drop-down arrow in the column header you want to filter by (e.g., click the arrow under "Status" if filtering by project status).
  6. In the filter menu that appears, uncheck the boxes next to items you want to *hide*, or check only the items you want to *show*. For text or number columns, you can also choose Filter by Selected Cell Value to auto-filter for the value in the cell you clicked earlier.
  7. Click OK to apply the filter. Only rows matching your selected criteria will remain visible; others are temporarily hidden (not deleted).
  8. To add more filters, repeat steps 5–7 for other column headers. Excel applies all active filters together (i.e., rows must meet *all* active filter criteria to be shown).

Common Mistakes

  • Selecting blank rows/columns within data: Excel may treat blank rows or columns as range boundaries, causing the filter to exclude part of your data. Always ensure your dataset is contiguous—no gaps.
  • Applying filter to multiple separate ranges: AutoFilter works on one contiguous block. If your data is split into multiple tables, you’ll need to apply filters separately or combine them first.
  • Forgetting to remove filters before sorting: Sorting while filters are active can cause unexpected results. Clear filters before sorting if you need a full reorganization.
  • Confusing "Hide" with "Delete": Hidden rows are still in the file and can be restored by clearing the filter. If you delete rows while filtered, you may unintentionally delete hidden rows too—always clear filters first before bulk edits.
  • Using merged cells in the header row: Merged cells can prevent the Filter button from appearing or cause errors. Unmerge headers before applying filters.

Tips

  • Convert to an Excel Table: Press Ctrl + T (or Cmd + T on Mac) to turn your range into a formal table. Tables auto-apply filters on headers and expand automatically when you add new rows.
  • Use Color Filters: If you’ve color-coded rows (e.g., red for overdue tasks), click the filter arrow > Filter by Cell Color to show only colored rows.
  • Save filter presets: For frequent filters (e.g., "Active" status only), create a custom view via View tab > Custom Views to recall your filtered state later.
  • Keyboard shortcut: Press Alt + A + T + F (Windows) or Fn + Option + F (Mac) to toggle filters on/off quickly.
  • Clear filters easily: Click Data > Clear (in the Sort & Filter group) to remove all active filters at once, or click the filter arrow > Clear Filter from [Column Name] to reset one column.

Troubleshooting

If the Filter button is grayed out: Your worksheet may be protected. Go to the Review tab > Unprotect Sheet (you’ll need the password if one was set). Also, ensure you’re not in a shared workbook with restricted editing.

If no drop-down arrows appear after clicking Filter: Check that your data has headers in the top row and that Excel recognizes them (no blank cells in the header row). If your first row contains data instead of headers, Excel may treat it as data—not headers—and hide the arrows. Fix this by inserting a new top row for headers, then reapply the filter.

If filtering doesn’t work as expected: Verify there are no leading/trailing spaces or invisible characters in your data (e.g., from copying from web pages). Use TRIM and CLEAN functions to clean text columns first. Also, ensure number formats match (e.g., don’t mix text-formatted numbers like "123" with true numbers like 123).

If rows still appear hidden after clearing filters: You may have manually hidden rows earlier. Go to the row numbers on the left, right-click any hidden row number, and choose Unhide. Alternatively, use Ctrl + Shift + $ to unhide all rows at once.

Frequently Asked Questions

Can I filter rows in Excel Online or mobile apps?

Yes, but with limitations. In Excel for the web, you can apply and edit filters via the Data tab, though some advanced filters (like custom number filters) may not be available. In Excel mobile apps (iOS/Android), you can open filtered sheets but cannot create or edit filters—only view the results of filters applied on desktop.

Does filtering delete data?

No. Filtering only hides rows; the underlying data remains intact and can be restored anytime by clearing the filter. Hidden rows are included in calculations (e.g., SUM, AVERAGE) unless you use functions like SUBTOTAL or AGGREGATE that ignore hidden rows.

How do I filter for multiple values in one column?

Click the column’s filter arrow, then in the list, hold Ctrl (or Cmd on Mac) while clicking multiple items to select them all. You can also use Text Filters > Contains for partial matches (e.g., show all rows where "Status" contains "Pending").

Can I filter rows based on cell color or font color?

Yes. After opening the filter menu, choose Filter by Cell Color or Filter by Font Color to show only rows matching the color of the selected cell. This works for both fill color and text color.

Why does my filter include rows I didn’t intend?

This often happens if your data range has extra columns/rows with data below your main table (e.g., totals or notes). Excel includes them in the filter. Fix it by selecting a cell *within* your core data before applying the filter, or define a precise range using Home > Find & Select > Go To Special > Visible Cells Only before filtering.

How do I copy filtered results to a new sheet?

After filtering, select the visible (filtered) rows, copy them (Ctrl + C), then paste into a new sheet. To avoid hidden rows being pasted, use Alt + ; (Windows) or Cmd + Shift + Space (Mac) to select *only visible cells* before copying.