How to Filter for Cells that Do Not Contain Text in Google Sheets
To filter for cells that do not contain specific text in Google Sheets, you can use the "Filter" feature along with a custom formula. Here's how to do it:
- Select the range of cells that you want to filter. If you want to filter an entire column, click on the column letter at the top.
- Click on "Data" in the menu bar.
- Click on "Create a filter." This will add filter icons to the header row of your selected range.
- Click on the filter icon in the header of the column you want to filter.
- Click on "Filter by condition."
- In the dropdown menu, select "Custom formula is."
- Enter the custom formula that filters for cells that do not contain specific text. Use the
SEARCH
function in combination withISERROR
andIF
functions, and replace "TEXT" with the text you want to exclude:
=IF(ISERROR(SEARCH("TEXT", A:A)), TRUE, FALSE)
Replace "A:A" with the column you want to filter, and "TEXT" with the text you want to exclude.
- Click on "OK." Google Sheets will now filter the column to show only the cells that do not contain the specified text.
Example
Let's say you want to filter column A for cells that do not contain the text "apple":
- Click on column A to select the entire column.
- Click on "Data" in the menu bar.
- Click on "Create a filter." This will add filter icons to the header row of column A.
- Click on the filter icon in the header of column A.
- Click on "Filter by condition."
- In the dropdown menu, select "Custom formula is."
- Enter the custom formula:
=IF(ISERROR(SEARCH("apple", A:A)), TRUE, FALSE)
- Click on "OK." Google Sheets will now filter column A to show only the cells that do not contain the text "apple."
Did you find this useful?