How to Add a Filter to a Spreadsheet
In this article
Adding a filter to a spreadsheet attaches a dropdown arrow to each column header, so you can show only the rows you care about without deleting or hiding anything permanently. In Google Sheets, click any cell in your data, then choose Data > Create a filter, or click the filter icon in the toolbar. In Microsoft Excel, click any cell in the range and go to Data > Filter (or press Ctrl+Shift+L on Windows, Cmd+Shift+L on Mac). Both tools hide non-matching rows temporarily; the data stays intact and the full set returns as soon as you clear the filter. Filters work best when your data is a clean table with one header row and no merged cells, so check that layout first.
What You'll Need
- A spreadsheet app that supports filters - Google Sheets (free, browser or mobile app) or Microsoft Excel (desktop, web or mobile). Both are the official, supported options for this task.
- A dataset laid out as a simple table: one header row at the top, one continuous block of data below it, and no blank rows or columns inside the block.
- Unique, non-blank header names for every column. Blank or duplicate headers can stop the filter from applying correctly.
- (Optional) A backup copy if you plan to sort as well as filter, since sorting changes the row order and is harder to undo than filtering.
Step-by-Step
- Prepare the data. Remove or merge any blank rows and columns inside the block, and make sure every column has a single header in the top row. If there is a title in row 1 and your real headers in row 2, either move the headers up or delete the title row. Filters assume the top row of the selected range is the header row.
- Select one cell inside the data. You don't need to highlight the whole table. Clicking a single cell anywhere in the block lets the app detect the surrounding range automatically. If it guesses wrong, select the full range manually before continuing.
- Apply the filter. In Google Sheets, choose Data > Create a filter (or the funnel icon in the toolbar). In Excel, go to Data > Filter, or press Ctrl+Shift+L (Windows) or Cmd+Shift+L (Mac). Labels can differ slightly by version, device or region, and the filter control sits in the Data tab in both apps.
- Confirm the arrows appeared. Each header cell should now show a small dropdown arrow. If no arrows appear, the app did not recognise a header row - check that the top row of the selected range contains text labels.
- Open a column's filter menu. Click the arrow on the column you want to narrow. A panel opens listing every distinct value in that column along with search and sort controls.
- Choose your criteria. Tick the values you want to keep and untick the rest, or use the search box inside the menu to type part of a value. For conditions like "greater than", "contains", or date ranges, switch to the filter-by-condition option in the same menu. Excel exposes this as Text Filters, Number Filters and Date Filters; Google Sheets offers Filter by condition.
- Apply and review. Confirm the filter. Non-matching rows disappear from view but are not deleted. The row numbers on the left will show gaps, which is normal - it tells you rows are hidden by the filter rather than removed.
- Stack filters if needed. Repeat steps 5 to 7 on other columns. Filters combine, so selecting "East" in the Region column and "Overdue" in the Status column shows only rows matching both.
- Clear or remove when done. To show everything again without losing the arrows, open the column menu and choose the clear-filter option. To remove filtering completely, go back to Data > Remove filter (Google Sheets) or Data > Filter to toggle it off (Excel). Note that clearing a filter keeps the arrows; removing the filter takes them away.
Common Mistakes
- Merged cells in the header row. A header row with merged cells breaks the one-arrow-per-column rule and can produce odd or missing dropdowns. Unmerge first.
- Blank rows or columns inside the data. A single empty row can cause the filter to apply only to the rows above it. Delete empty rows and columns inside the block.
- Filtering the whole sheet instead of the table. If the range includes stray data elsewhere on the sheet, unrelated rows may appear or disappear. Keep a single table per sheet where possible, or select the range explicitly.
- Assuming hidden rows are deleted. Filtering never deletes data. If a row is truly gone, it was deleted or the sheet was overwritten - undo immediately with Ctrl+Z or Cmd+Z.
- Sorting on a filtered view and expecting full data to reorder. Sorting while a filter is active can produce confusing results. Clear the filter, sort, then reapply it.
- Using filters to split data permanently. If you need separate files or sheets, filter to the subset you want, then copy the visible rows and paste into a new sheet before clearing. Copying a filtered range copies only the visible rows, which is often useful but can surprise you.
Tips
- Format your range as an official table (Insert > Table in Excel) or apply alternating colours, so the filtered range is obvious to anyone opening the file.
- Use the search box inside the dropdown to find a value quickly in long lists - far easier than scrolling through hundreds of tick boxes.
- Add a "helper" column with a formula result if you need complex conditions, then filter on that single column instead of juggling multiple menus.
- On mobile, the same controls exist but are tucked behind a menu; in Google Sheets tap the column header then the filter icon, in the Excel app tap a cell and look for the filter option in the sheet menu.
- Freeze the header row (View > Freeze in Google Sheets, View > Freeze Panes in Excel) so the filter arrows stay visible when you scroll down.
Troubleshooting
- No filter arrows appear. Confirm you clicked inside the data and that the top row contains text headers, not values. If the sheet is protected, the filter option may be greyed out - ask the owner to allow editing.
- Only some columns get arrows. This usually points to a merged cell or a hidden column in the range. Unmerge or unhide, then reapply.
- Rows below the filter are ignored. A blank row has split your data into two blocks. Delete the blank row and reapply the filter.
- Filter menu looks empty or shows strange values. The app may be treating data below the header as part of the labels. Check that your header row is genuinely the first row of the selection, then remove and reapply the filter.
- Filter greys out unexpectedly. This happens when the file is in a protected view, shared with restricted edit rights, or the sheet is part of a group where one sheet blocks editing. Remove protection or ask for edit access.
- Nothing changes when you tick values. Confirm you pressed the confirm/OK button in the menu; some versions require it before applying. Also check you are filtering a column that actually contains those values.
- If that did not work, save a copy, remove the filter, and rebuild the table with a clean header row and no blank rows. That fixes the majority of stubborn filter problems.
Frequently Asked Questions
Does adding a filter delete any data?
No. A filter only hides rows that do not match. All data remains in the spreadsheet, and clearing the filter brings every row back.
Can I filter by more than one column at once?
Yes. Apply a filter to one column, then another. The results are combined, showing only rows that match every active filter.
Why do my row numbers skip numbers after filtering?
The gaps show rows hidden by the filter. Nothing has been removed - the numbering still reflects the original order of the sheet.
Is filtering the same as sorting?
No. Filtering hides rows temporarily; sorting rearranges all rows by a column's values. Sorting changes the stored order, so clear filters and take a backup before sorting important data.
Can I filter on my phone?
Yes, both the Google Sheets and Excel mobile apps support filtering, though the controls sit in menus rather than the toolbar. The steps and results match the desktop versions.
Will other people editing the file see my filter?
In Google Sheets, filters created through Data > Create a filter can appear as filter views when shared, but each person generally controls their own view. Screenshots or exported copies show the filtered rows only.