How to Add a Filter in Excel 2007: Step-by-Step
In this article
To add a filter in Excel 2007, click any cell inside your data range, go to the Data tab on the ribbon, and click Filter. Drop-down arrows appear in the header row of each column, and you can then use them to show only the rows you want. The whole job takes a few seconds, but a few details determine whether it works cleanly or leaves you with a messy, half-filtered sheet.
Excel 2007 was the first version to use the ribbon, so the menus look different from Excel 2003's Data > Filter > AutoFilter path. Everything below refers to the Excel 2007 ribbon on Windows. If you are on a Mac, the general idea is the same but the exact button locations differ.
What You'll Need
- Excel 2007 installed on Windows (the ribbon layout described here is specific to that version).
- A worksheet with data arranged in columns, ideally with a single header row at the top.
- No blank rows or fully blank columns inside the data you want to filter, because Excel treats a blank row as the end of the range.
- No merged cells in the header row, since merged cells break the filter arrows.
Step-by-Step
- Make a backup first. Save a copy of the workbook (File > Save As, give it a new name) before you start. Filtering hides rows rather than deleting them, but it is easy to sort or delete the wrong thing while rows are hidden, and a copy lets you start over.
- Clean up the layout. Remove any blank rows inside the data, unmerge cells in the header row, and make sure every column has a short, unique heading in row 1. If a heading is missing, Excel will generate one like "Column1", which is confusing later.
- Click a single cell inside the data. Do not select the whole sheet and do not select only the header row. One cell anywhere in the block is enough, because Excel expands the selection to the surrounding range automatically.
- Open the Data tab. On the ribbon, click Data. The Sort & Filter group sits near the right-hand side.
- Click Filter. The Filter button shows a funnel icon. Clicking it turns on AutoFilter for the detected range, and a small drop-down arrow appears at the right edge of each header cell.
- Confirm the range is correct. If arrows appear on only some columns, or on rows you did not expect, click Filter again to switch it off, then select the entire data block manually (click the top-left cell, hold Shift, click the bottom-right cell) and click Filter once more.
- Open a column's drop-down. Click the arrow in the header of the column you want to narrow down. A menu appears listing every distinct value in that column, plus options for sorting and for text or number filters.
- Choose your filter. Tick the values you want to keep and click OK, or use the filter submenu (for example Text Filters > Contains, or Number Filters > Greater Than) to build a rule. The sheet redraws to show only matching rows, and the column's arrow changes to a funnel symbol to show a filter is active.
- Add more filters if needed. Repeat on other columns. Filters combine, so each additional column narrows the result further.
- Clear a filter when you are done. Open the column's drop-down and choose Clear Filter from the column name, or click the Filter button on the Data tab twice to remove all arrows and show every row again. To remove the arrows permanently, click Filter once so the button is no longer highlighted.
Common Mistakes
- Leaving blank rows in the data. Excel stops the filter range at the first blank row, so rows below it are ignored and their values never appear in the drop-down.
- Merged header cells. A merged header cell has no single anchor for the arrow, so the filter either refuses to apply or behaves erratically. Unmerge first.
- Filtering a single column instead of the block. If you select only one column before clicking Filter, only that column gets arrows and the rows will not stay aligned with the rest of the data.
- Typing into hidden rows. Edits made to visible cells can land in hidden rows when you copy and paste. Clear filters before doing bulk edits.
- Assuming filtered rows are deleted. They are only hidden. Copying a filtered range and pasting it elsewhere copies only the visible rows, which is useful, but deleting a filtered range deletes only what is visible.
- Forgetting that sorting respects the filter. Sorting while a filter is on reorders only the visible rows in some situations, which can scramble the underlying data. Clear filters before sorting large blocks.
Tips
- Format your data as a table-like block with consistent types per column. Mixing text and numbers in one column makes the filter menu show both text and number options, which is confusing.
- Use Text Filters > Contains for partial matches, such as all rows containing "north" in a region column.
- Use the (Select All) checkbox at the top of the value list to quickly clear your selections before picking new ones.
- If you need to keep several different views, copy the sheet and apply different filters to each copy rather than toggling back and forth.
- Freeze the header row (View > Freeze Panes > Freeze Top Row) so the filter arrows stay visible when you scroll down a long list.
- Remember that filters are saved with the workbook. Anyone who opens the file sees the same hidden rows, so clear filters before sharing if you want everything visible.
Troubleshooting
The Filter button is greyed out. This usually means the sheet is protected (Review > Unprotect Sheet) or the workbook is shared in a way that blocks filter changes. Unprotect the sheet, or ask the owner to allow filtering.
No arrows appear after clicking Filter. Check for merged cells in the header row and for a blank row directly beneath the headers. Both stop Excel from recognising the range.
Some values are missing from the drop-down. The range is probably stopping early at a blank row. Clear the filter, select the full block manually, and reapply.
Rows seem to disappear. They are hidden, not deleted. Click Filter on the Data tab to toggle the arrows off, or open each column's menu and choose Clear Filter.
Filtering behaves oddly after copying data. Pasting filtered data can place values into hidden rows. Clear all filters, undo the paste (Ctrl+Z), and paste again with filters off.
Excel crashes or the file will not save. Save a copy under a new name, close and reopen Excel, and try again. If the problem persists, the file may be damaged and a fresh copy of the data is the safest route.
Frequently Asked Questions
Does filtering delete rows in Excel 2007?
No. Filtering only hides rows that do not match. The data stays in the sheet and reappears when you clear the filter.
Can I filter more than one column at once?
Yes. Each additional column filter narrows the visible rows further, and all active filters combine.
How do I remove all filters at once?
Click the Filter button on the Data tab to switch AutoFilter off, which removes every arrow and shows all rows. Alternatively, clear each column's filter individually.
Why does my filter range stop partway down the sheet?
Almost always a blank row inside the data. Delete or fill the blank row, then reapply the filter.
Can I filter by colour in Excel 2007?
No. Filtering by cell or font colour was added in later versions. In Excel 2007 you filter by values, text conditions, or number conditions only.
Will the filter still be there when I reopen the file?
Yes, filters are saved with the workbook, so hidden rows stay hidden until someone clears them.