[Google Sheets] Check whether a cell contains text

Created on November 30, 2026

Use REGEXMATCH to test whether a cell contains a string. The second argument is a regular expression, so ordinary text without regex metacharacters works as well. This formula returns TRUE when A1 contains hoge.

=REGEXMATCH(A1,"hoge")
Google SpreadSheets