I'd like to be able to delete all rows in a Google Spreadsheets where a given text string exists anywhere in the row. The text being searched for could be in any cell in the row, and also could be part of a longer string within the row cell e.g. "xxxx [text being searched for] yyy".

2 Answers 2


I think I understand your question. Have you tried using the search and replace feature? I believe there's an add on for that if sheets doesn't have it by default.


You have not tagged this but with a script is the only way to delete rows 'automatically'. However 'manually' is not tedious. Assumimg your range of interest is confined to ColumnsA:Z, in say AA1 please try:


and copy it down to suit, where text above represents whatever the offending string is.

This is case insensitive.

Then filter ColumnA:A to select rows that have a numeric value (not 0) and delete these.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.