The simplest way to filter a table in Google Sheets is to select your data range, go to Data > Create a filter, and then use the dropdown arrows that appear in the header row to choose which values to show or hide. You can also use the FILTER function to create a separate, dynamic filtered list that updates automatically when your source data changes.
What a Filter Does in Google Sheets
A filter temporarily hides rows in your sheet that do not match the criteria you set, without deleting any data. This is different from sorting, which only reorders rows. Filters are useful when you want to focus on a subset of your data—for example, viewing only sales from a specific region or only rows where the quantity is above a certain number. The filter is applied to the entire row, so all columns in that row are hidden together.
How to Create a Basic Filter
Follow these steps to apply a filter to your data:
- Select the range of cells you want to filter, including the header row. If your data is in a contiguous block, click any cell inside it and Google Sheets will auto-select the range.
- Go to Data > Create a filter. Alternatively, use the keyboard shortcut Ctrl+Shift+L (Windows) or Cmd+Shift+L (Mac).
- You will see small green funnel icons in the header cells. Click the funnel in the column you want to filter by.
- In the dropdown menu, uncheck the values you want to hide, or use the search box to find a specific value. You can also use the “Filter by condition” section to set numeric or text rules (e.g., “Greater than” or “Text contains”).
- Click OK to apply the filter. The rows that don’t match will be hidden.
To remove the filter, go to Data > Remove filter or press the shortcut again. This does not delete any data—it just shows all rows again.
Using the FILTER Function for Dynamic Results
If you want a filtered result that lives in a separate area of your sheet and updates automatically when the source data changes, use the FILTER function. This is especially useful for dashboards or reports.
The syntax is: =FILTER(range, condition1, [condition2, ...])
For example, suppose you have a list of orders in columns A (Product) and B (Quantity), with data in rows 2 to 20. To list only orders with a quantity greater than 10, put this formula in cell D2:
=FILTER(A2:B20, B2:B20>10)
This returns all rows where the quantity in column B is greater than 10. If you want to filter by multiple conditions, add them as additional arguments. For instance, to show only rows where the product is “Widget” and quantity is greater than 5, use:
=FILTER(A2:B20, A2:A20="Widget", B2:B20>5)
Note that the condition ranges must be the same size as the filter range. The result will spill into the cells below and to the right of the formula cell, so make sure there is empty space there. If you want to combine this with sorting, wrap it in SORT: =SORT(FILTER(A2:B20, B2:B20>10), 2, FALSE) would sort by the second column descending.
Filter Views: Save and Share Specific Filters
Filter views are saved snapshots of a filter configuration that you can name and reuse. They are especially helpful when multiple people are working on the same sheet, because each person can have their own filter without affecting others.
- Go to Data > Filter views > Create new filter view.
- A dark bar appears at the top of the sheet with a name like “Filter view 1”. You can rename it by clicking on the name.
- Apply your filters as you normally would. The filter is now saved as part of this view.
- To switch between views, go to Data > Filter views and select the one you want.
- To share a filter view, copy the sheet’s URL while the view is active—the view name is included in the URL. Anyone with access to the sheet can open that link and see the same filtered data.
Filter views are also useful for creating temporary filters without altering the default view for other users. They work on both desktop and mobile browsers, though the interface is slightly different on mobile.
Common Problems and Solutions
Here are a few issues you might run into and how to fix them:
- Filter not showing all rows: If you have blank rows or merged cells in your data, the filter may not include them. Make sure your range includes all rows you want to filter, and avoid merged cells in the header.
- Filter dropdown is empty: This can happen if the column contains formulas that return errors or if the data is not recognized as a list. Check that your header row is not blank and that there are no stray spaces in the data.
- Filter disappears when I add new rows: If you insert rows below your filtered range, they won’t be included automatically. Re-create the filter or use a table (Insert > Table) which auto-expands.
- Filtered data is not updating: If you used the
FILTERfunction, ensure that the source range is correct and that you haven’t accidentally typed the condition incorrectly. Also, check that the formula cell is not being overwritten by a filter view.
Filter vs. Sort: What’s the Difference?
Many users confuse filtering with sorting. Sorting rearranges the order of rows based on a column’s values (e.g., A to Z, smallest to largest). Filtering hides rows that don’t meet criteria. You can combine both: first filter to show only certain rows, then sort those rows. In Google Sheets, you can sort within a filtered view by clicking the funnel icon and choosing a sort option, or by using the SORT function on the filtered result. Sorting alone does not hide any data—it only changes the sequence.
Alternatives to Filters: Slicers and Pivot Tables
For more interactive control, consider these alternatives:
- Slicers: Slicers are visual buttons that let you filter a chart or pivot table with one click. They are available in Google Sheets when you have a chart or pivot table. To add a slicer, go to Insert > Slicer and choose the data range. Slicers are great for dashboards because they are intuitive and show the current filter state.
- Pivot tables: Pivot tables summarize large datasets and allow you to filter by dragging fields into the “Filters” area. They are more powerful than simple filters for grouping and aggregating data. To create one, go to Insert > Pivot table.
These tools are not replacements for basic filters, but they offer different ways to explore data, especially when you need to present it to others.
Frequently Asked Questions
How do I filter by color in Google Sheets?
Google Sheets does not have a built-in filter by cell color option like Excel does. However, you can use a workaround: add a helper column with a formula that checks the cell’s background color using Google Apps Script, or manually mark the rows and then filter by that marker. For most users, it’s easier to use conditional formatting to assign a value (e.g., a number) based on a rule, then filter by that value.
Can I filter data in Google Sheets on my phone?
Yes, the Google Sheets mobile app supports filters. Tap the filter icon (funnel) in the toolbar, then select the column and choose values or conditions. Filter views also work on mobile, but the interface is more limited than on desktop.
Why is my filter not showing all rows?
This usually happens when your data range has blank rows or columns, or when the range you selected does not include all the rows you expect. Check that your data is contiguous (no completely empty rows in the middle) and that you have selected the correct range. Also, if you have hidden rows manually, they will remain hidden even after applying a filter.
How do I copy only filtered data to another sheet?
If you want to copy the visible rows after applying a filter, select the filtered range, press Ctrl+C (or Cmd+C on Mac), then go to the destination sheet and press Ctrl+Shift+V to paste only the values. This will copy only the visible cells, not the hidden ones. Alternatively, use the FILTER function to create a dynamic copy that updates automatically.
Can I use a filter with a formula that references another sheet?
Yes, you can use the FILTER function with a range from another sheet. For example, =FILTER(Sheet2!A2:B20, Sheet2!B2:B20>10) will filter data from Sheet2. The same applies to filter views—they work on any sheet in the workbook.
Related
- Sitting Balance Test Calculator: How to Use It
- Home Expense Tracking Template in Excel: How to Build One
- IMCOSH in Google Sheets: Formula & Examples
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Indent in an Excel Cell: Steps, Tips and FixesTo indent text in an Excel cell, select the cell or range, then choose Home > Alignment >…
- Excel Name Manager Dynamic Range ExplainedThe Name Manager in Excel lets you create a named range that automatically expands or contracts as you…
- Basic Excel for Data Analysis: A Practical GuideBasic Excel for data analysis means organizing a dataset, checking and cleaning it, then using formulas, PivotTables, and…
- How to Locate Duplicates in Google Sheets: A WalkthroughTo locate duplicates in Google Sheets, select the cells you want to check, choose Format > Conditional formatting,…
- How to Put Slide Numbers in PowerPoint on Every SlideTo put slide numbers in PowerPoint, open Insert > Slide Number, check Slide number, then select Apply to…
- Conditional Formatting: Compare Two Columns in ExcelYes. In Excel for Microsoft 365, select the cells you want formatted, choose Home > Conditional Formatting >…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.