Smart Systems for Home

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

How to Add a Filter to the First Row in Excel

· 5 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 add a filter to the first row in Excel, click any cell in the first row of your data, go to the Data tab, and click Filter. This adds drop-down arrows to the header cells in row 1, letting you sort and filter the columns below. The only requirement is that your first row contains column headers and the rows beneath contain data with no completely blank rows or columns interrupting the range.

What You'll Need

  • Excel for Windows, Excel for Mac, Excel for the web, or the Excel mobile app (labels can differ slightly by version, device, or region).
  • A worksheet where row 1 holds column headers and the rows below hold the data you want to filter.
  • No completely blank rows or columns inside the data range, because Excel treats a blank row or column as the end of the table.

Step-by-Step

  1. Open your workbook and click the sheet that contains the data.
  2. Select the data range. The quickest way is to click any single cell inside the data and press Ctrl+A (Windows) or Command+A (Mac). Excel selects the current region, which stops at blank rows or columns. If you prefer, click the first header cell in row 1 and drag to the bottom-right corner of your data, or select entire columns by clicking the column letters.
  3. Go to the Data tab on the ribbon.
  4. Click Filter in the Sort & Filter group. Drop-down arrows appear in each header cell of row 1. On Excel for the web the button is in the same Data tab; on the Excel mobile app, open the Data menu and look for the filter option, which may be labelled differently.
  5. Test it. Click the arrow in any header, tick or untick values, and click OK. The rows below are filtered while row 1 stays visible.
  6. Clear a filter when you are done by clicking the arrow and choosing Clear Filter from the column, or use Data > Clear to remove all filters at once.

Common Mistakes

  • Selecting only row 1. If you select just the header row before clicking Filter, Excel may filter only that row. Select the whole data range or a single cell inside it so Excel picks up the full block.
  • Leaving blank rows or columns. A blank row or column splits your data into separate regions, so the filter covers only part of it. Delete or fill the gaps first.
  • Using merged cells in the header row. Merged header cells can prevent filters from applying cleanly. Unmerge them and put one label per column.
  • Forgetting that row 1 must be headers. If row 1 contains data rather than labels, Excel may treat it as a data row and your filter will look wrong. Add a header row above first.
  • Applying Filter to a formatted Excel Table that already has filters. Tables include filter buttons by default, so the ribbon button may appear greyed out or toggle them off. Check the Table Design tab instead.

Tips

  • Convert the range to an Excel Table with Ctrl+T (Windows) or Command+T (Mac). Tables keep filters attached as you add rows and give you structured references.
  • Use the filter arrows to sort as well as filter; both live in the same drop-down.
  • Freeze row 1 with View > Freeze Panes > Freeze Top Row so the headers stay visible while you scroll through filtered results.
  • If you only need to hide a few rows quickly, use Data > Filter rather than manual row hiding, because filters are easier to clear and reapply.
  • Keyboard shortcut: Ctrl+Shift+L (Windows) or Command+Shift+L (Mac) toggles filters on and off for the selected range.

Troubleshooting

  • The Filter button is greyed out. You are probably editing a cell, the sheet is protected, or the workbook is shared in a mode that blocks changes. Press Esc to leave edit mode, unprotect the sheet via Review > Unprotect Sheet if you have the password, or stop sharing temporarily.
  • Arrows appear but filtering does nothing. Check for blank rows or columns inside the range and remove them, then reapply the filter.
  • Arrows appear on the wrong row. Excel decided the first row of your selection was data, not headers. Insert a header row above, or select the range starting at the true header row.
  • Filters disappear after saving and reopening. If the file is saved as .csv, filters are not preserved. Save as .xlsx to keep them.
  • Only some columns show arrows. Your selection was probably not contiguous. Select the full block again and reapply.
  • You cannot see the arrows because the row height is too small. Increase the row height of row 1 by dragging the row border.

Frequently Asked Questions

Can I add a filter without selecting the whole data range?

Yes. Click any single cell inside the data and then click Data > Filter. Excel expands the selection to the surrounding block automatically, provided there are no blank rows or columns.

Why does Excel put filter arrows on row 2 instead of row 1?

Excel treats the top row of the selected range as headers. If you selected starting at row 2, the arrows land there. Select from row 1, or insert a header row above your data.

Does adding a filter change my data?

No. Filtering only hides rows; it does not delete, sort permanently, or alter cell values. Clearing the filter brings all rows back.

Can I filter by colour or by text contains?

Yes. Open a column's filter drop-down and use the options for text filters, number filters, or filter by colour, depending on the data type in that column.

Will the filter stay if I add new rows below?

If you used a plain range, new rows outside the original selection are not covered until you reapply the filter. If you converted the range to an Excel Table, the filter expands automatically as you add rows.

How do I remove filters completely?

Click any cell in the data and press Ctrl+Shift+L (Windows) or Command+Shift+L (Mac), or click Data > Filter again to toggle it off. The drop-down arrows disappear and all rows are shown.