Filter Shortcut: Add or Remove in Excel & Sheets
In this article
The quickest way to add or remove a filter is the keyboard shortcut Ctrl+Shift+L on Windows and Cmd+Shift+L on Mac in Microsoft Excel and Google Sheets. Press it once with any cell in your data range selected to turn filters on, and press it again to turn them off. In Excel you can also use Alt, then A, then T as a menu-key sequence. The exact keys and behavior vary by app, so the steps below cover Excel, Google Sheets, and a few common alternatives.
What You'll Need
- A spreadsheet open in Microsoft Excel (desktop) or Google Sheets (browser). The shortcuts below are for the desktop versions; the mobile apps use tap-based menus instead.
- Your data arranged with a single header row and no completely blank rows or columns inside the range you want to filter.
- On Mac, use the Command key wherever Ctrl is listed for Windows.
Step-by-Step
- Select your data. Click any single cell inside the table or list you want to filter. You do not need to highlight the whole range; Excel and Sheets detect the surrounding block automatically. If your sheet has several separate tables, click inside the one you mean.
- Add the filter with the keyboard. In Excel for Windows, press Ctrl+Shift+L. In Excel for Mac, press Cmd+Shift+L. In Google Sheets, press Ctrl+Shift+L (Windows/ChromeOS) or Cmd+Shift+L (Mac). Drop-down arrows appear in the header row, which tells you filters are now active.
- Confirm the header row is correct. If the arrows appear on your first data row instead of your column titles, the app did not recognize a header. Turn the filter off with the same shortcut, add or format a proper header row, then turn it back on.
- Apply a filter. Click a header arrow and tick or untick values, or use the search box in the filter menu. In Excel you can also use Text Filters, Number Filters, or Date Filters for conditions such as "greater than" or "contains."
- Remove the filter but keep the arrows. To clear what is filtered without deleting the filter buttons, open the header menu and choose Clear Filter (Excel) or the equivalent clear option in Sheets. This shows all rows again while leaving the drop-downs in place.
- Remove the filter entirely. Click any cell in the filtered range and press the same shortcut again (Ctrl+Shift+L or Cmd+Shift+L). The drop-down arrows disappear and all rows are shown. This is a toggle: one press adds, the next removes.
- Use the menu if the shortcut does not respond. In Excel, go to the Data tab and click the Filter button in the Sort & Filter group. In Google Sheets, open the Data menu and choose Create a filter or Remove filter. Menu labels can differ slightly by version, device, or region.
Common Mistakes
- Pressing the shortcut with no cell selected. If the active cell is outside the data block, the app may apply the filter to the wrong range or do nothing. Click inside the table first.
- Expecting the shortcut to clear a filter. The toggle only adds or removes the filter buttons. It does not reset an active filter condition; use Clear Filter in the header menu for that.
- Leaving blank rows or columns. A fully blank row or column splits your data into separate blocks, so the filter may cover only part of the list. Delete or fill the gaps first.
- Using the shortcut in the wrong app. Ctrl+Shift+L does nothing useful in Word, PowerPoint, or most other programs. It is a spreadsheet shortcut.
- Confusing it with sort. The filter shortcut does not sort your data. Sorting has its own commands under the Data tab or Data menu.
Tips
- Format your range as an Excel Table (Ctrl+T) if you want filters to stay attached as you add rows. Tables keep the header arrows automatically.
- In Google Sheets, the filter created by the shortcut applies to the whole sheet's data block. If you need a filter limited to one range, use Data > Create a filter instead and check the range it selects.
- Press the shortcut a second time only after you have cleared any active filter conditions, otherwise hidden rows may stay hidden until you clear them.
- On a laptop with a compressed keyboard, make sure you are pressing the real Shift and Ctrl keys, not a function-layer combination.
- If you share a workbook, removing filters changes what collaborators see. Clear filters rather than deleting them when others still need the buttons.
Troubleshooting
If the shortcut does nothing, work through these checks in order. First, click directly inside your data and try again; a cell outside the range is the most common cause. Second, check whether the workbook or sheet is protected: in Excel, a protected sheet can block filter changes until you unprotect it via the Review tab, and you will need the password. Third, confirm you are in the desktop app rather than a browser view of Excel, where some shortcuts behave differently. Fourth, update the app, since older versions can have inconsistent shortcut handling. If the arrows appear but filtering seems broken, look for hidden rows above your header, merged cells in the header row, or a filter applied to a different table on the same sheet.
If the shortcut still fails, use the menu route (Data > Filter in Excel, Data > Create a filter in Sheets). As a last resort in Excel, save your work, close and reopen the workbook, and try once more. Avoid deleting rows or columns to "reset" a filter; that removes data permanently.
Frequently Asked Questions
What is the shortcut to add a filter in Excel?
Ctrl+Shift+L on Windows and Cmd+Shift+L on Mac. It toggles filters on and off for the selected data range.
What is the shortcut to remove a filter in Excel?
The same keys, Ctrl+Shift+L or Cmd+Shift+L, remove the filter buttons entirely. To clear an active filter but keep the buttons, use Clear Filter in the column's drop-down menu.
Does Ctrl+Shift+L work in Google Sheets?
Yes, in the browser version on Windows and ChromeOS, and Cmd+Shift+L on Mac. The Google Sheets mobile apps do not use this shortcut; use the Data menu or the filter icon instead.
Why did the filter arrows appear on my first data row?
The app did not detect a header row. Turn filters off, make sure the top row contains your column titles and is formatted as text, then turn filters back on.
Can I filter more than one column at once?
Yes. Set a condition in one column, then set another in a different column. The rows shown must meet all active conditions.
Does the shortcut work on Excel for Mac?
Yes, using Command instead of Ctrl: Cmd+Shift+L. Some Mac keyboards label the key with a cloverleaf symbol rather than the word Command.