Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Filter Rows in Excel: Step-by-Step

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To filter rows in Excel, select your data range (or click any cell inside it), go to the Data tab, and click Filter. Drop-down arrows appear in the header row; click one and choose the values you want to keep. That is the whole job for most sheets. The rest of this guide covers the details that make filtering reliable: turning data into a proper table, filtering by text, number, date or colour, filtering more than one column at once, and fixing the situations where the arrows do not appear or the results look wrong.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, 2019 or 2016 on Windows or Mac, or Excel for iPhone, iPad or Android. The menus are similar across versions, but labels can differ slightly by version, device or region.
  • A worksheet where the first row of your range contains column headings and the rows below contain data.
  • No blank rows or blank columns inside the range you want to filter, because Excel treats a blank row as the end of the data.

Step-by-Step

  1. Make sure the first row is a header row. Each column needs a short, unique heading such as Date, Customer, Amount or Status. If a heading is missing, type one in. Excel uses these headings as the filter menu labels, so clear names make the drop-downs much easier to use.
  2. Remove blank rows and columns inside the data. Select the range and look for gaps. A completely blank row in the middle splits your data into two blocks, and Excel will only filter the block you clicked in. Delete the blank rows or fill them before you continue.
  3. Select the data. Click any single cell inside the range. Excel will usually detect the surrounding block automatically. If your data sits next to other content, drag to select the exact range including the header row instead.
  4. Turn on Filter. On the Data tab, in the Sort & Filter group, click Filter. On Excel for Mac the button is in the same group on the Data tab. On Excel for iPhone, iPad and Android, open the Data tab on the ribbon and tap Filter; if you cannot see the ribbon, tap the arrow at the bottom of the screen to expand it.
  5. Confirm the arrows appeared. Small drop-down arrows should now sit in the bottom-right corner of each header cell. If they appear on the wrong row, you selected a range that did not include the headings; turn Filter off and repeat from step 3 with the header row included.
  6. Open a column's filter menu. Click the arrow in the heading you want to filter by, for example Status. A menu opens listing every unique value in that column with a checkbox beside it.
  7. Choose what to keep. Untick (Select All) to clear everything, then tick only the values you want. Click OK. Excel hides the rows that do not match and the row numbers on the left turn blue to show a filter is active.
  8. Use the search box for long lists. If a column has hundreds of values, type part of the value into the search box at the top of the filter menu instead of scrolling. Tick the matches and click OK.
  9. Filter by condition instead of by value. The same menu has submenus for Text Filters, Number Filters or Date Filters, depending on what the column contains. These let you use conditions such as Begins With, Greater Than, Between or After. Pick a condition, enter the value, and click OK. Use Contains when you only remember part of a word.
  10. Stack filters across columns. With one filter applied, open the arrow on a second column and set another filter. Excel applies both at once, so you see only rows that meet every condition. This is how you answer questions like "orders from the North region that are still Open".
  11. Clear one filter or all of them. To clear a single column, open its arrow and click Clear Filter From [column name]. To remove every filter at once, go to Data > Filter again; this turns the feature off and shows all rows. Turning Filter back on later does not restore the old selections.
  12. Reapply after editing. If you change values in a filtered sheet, Excel may not refresh the hidden rows immediately. Go to Data > Reapply to refresh the filter against the current data.

Common Mistakes

  • Filtering only part of the data. If you select A1:D20 but your data runs to row 500, rows below 20 are ignored. Select the whole block or click a single cell and let Excel detect it.
  • Leaving the header row out of the selection. The arrows then land on your first data row and that row gets treated as a heading, which hides it from the results.
  • Blank rows or merged cells in the range. Both break the detected range. Unmerge cells and fill or delete blank rows before filtering.
  • Forgetting that hidden rows are still there. Filtering does not delete anything. Copying a filtered range copies only the visible rows, but selecting and dragging can behave differently, so check what you copied before pasting elsewhere.
  • Expecting one column's filter to override another. Filters combine with AND logic across columns. If you want either-or results, use the filter menu's custom options within a single column or a helper column with a formula.
  • Sorting while filtered. Sorting reorders only the visible rows in some situations, which can scramble the relationship between columns. Clear filters before sorting if you are unsure.

Tips

  • Convert the range to a table with Insert > Table. Tables add filter arrows automatically, expand as you type new rows, and keep the header row visible as you scroll.
  • Use the filter arrows to sort as well as filter; the same menu has Sort A to Z, Sort Z to A and Sort by Color.
  • Filter by colour when cells are filled or text is coloured, which is handy for status flags you have highlighted manually.
  • Add a total row to a table to see sums and counts of the visible rows only, so the numbers update as you filter.
  • If you need to keep a filtered view for later, copy the visible rows to a new sheet rather than leaving the filter on the original.

Troubleshooting

  • The Filter button is greyed out. The sheet may be protected. Go to Review > Unprotect Sheet and enter the password if you have it. In a shared workbook, some filter options are limited; ask the owner to remove sharing temporarily.
  • No arrows appear. Check that you are on the Data tab and that the range has a header row. If arrows appear but are cut off, widen the column.
  • Some rows will not hide. Those rows are probably outside the filtered range. Clear the filter, reselect the full block including headers, and turn Filter on again.
  • Values are missing from the filter list. The list shows only values in the detected range, so a value in a row below a blank row will not appear. Remove the blank row.
  • The filter seems stuck on old results. Click Data > Reapply, or clear the filter and set it again. If the file is very large, close and reopen it before reapplying.
  • You cannot see the hidden rows at all. Turn Filter off from the Data tab. If rows are still hidden, select the row numbers on both sides of the gap, right-click and choose Unhide.

Frequently Asked Questions

Does filtering delete rows?

No. Filtering only hides rows that do not match. Turning the filter off brings every row back exactly as it was.

Can I filter more than one column at a time?

Yes. Set a filter on one column, then set another on a second column. Excel shows only rows that meet all the active conditions.

Why do my filter arrows appear on the wrong row?

The selected range did not include the header row, so Excel treated your first data row as the heading. Clear the filter and reselect the range starting from the header row.

How do I filter by a partial match, such as all names containing "son"?

Open the column's filter menu, choose Text Filters > Contains, type the text and click OK. Number and date columns offer their own condition menus instead.

Can I filter on a phone or tablet?

Yes. In Excel for iPhone, iPad and Android, open the Data tab on the ribbon, tap Filter, then tap a column's arrow to choose values. The layout is more compact than on desktop, but the same value and condition options are available.

What happens if I sort while a filter is on?

Excel sorts the visible rows within the filtered view. Clear the filter first if you want to sort the entire dataset, then reapply the filter afterwards.