If...

search range: A1:A10

search key: B1:B3

... then use the following formula

=arrayformula(sum(if(regexmatch(textjoin(",",false,",",A1:A10,","),","&B1:B3&","),1,0)))>0

Feel free to read the documentation of the functions in question.

The basic idea here is that: we want to be able to join the search words into 1 string and apply arrayformula to individual search keys; and then, we want to search whole words.

So how do we easily search whole words? Your search words are divided by cells. So lets put , between them but also wrapping them. Now ","&search_key&"," marks a matched word -- not just a component of a search word.

The rest is doing and operation on array. Google Sheet unfortunately doesn't have functions like any or all. So the most (computationally) efficient thing to do is to use if (in comparison to alternatives like matrix multiplication or filter). The position of arrayformula doesn't matter here so you can just put it outside everything.

Answer from Argyll on Stack Overflow
🌐
Reddit
reddit.com › r/googlesheets › find if text exists in a range
r/googlesheets on Reddit: Find If Text exists in a range
March 12, 2023 -

I am looking for a way to find if a text is in a range of cells but the cell does not have to be the exact match it just has to contain the text anywhere within the cell. Something like the search function but for a range of data. Using this to compare one list to another and then generate another list that tells me everything that is the same.

Discussions

Check If A Range Contains A String - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
If cells in range contain specific text, return cell in different range? - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on More on support.google.com
🌐 support.google.com
google sheets - If cell contains a string listed in range - Stack Overflow
Trying to output "True" if a cell contains a string listed in a range. See screenshot. This is a simplidied version of an old question I posted here here: Here is a link to the spreadsheet More on stackoverflow.com
🌐 stackoverflow.com
Google Sheets formula for “if contains” from range - Web Applications Stack Exchange
I try to figure out how to get a value based on "if some word is in a range". So formulas from (Google Sheets formula for "if contains") works: =IF(ISTEXT(REGEXEXTRACT( A1, "sites")), 1,... More on webapps.stackexchange.com
🌐 webapps.stackexchange.com
June 7, 2018
People also ask

Does Coefficient work with both Google Sheets and Excel?
Yes, Coefficient supports both Google Sheets and Microsoft Excel. You can install Coefficient from the Google Workspace Marketplace for Sheets or from Microsoft AppSource for Excel.
🌐
coefficient.io
coefficient.io › home
IF CONTAINS Google Sheets: Mastering Conditional Data Searches
What is Coefficient's AI Sheets Assistant?
AI Sheets Assistant is Coefficient's AI-powered feature that helps you build formulas, create charts, generate pivot tables, and build entire dashboards using natural language commands in Google Sheets. Unlike generic AI assistants, it's context-aware and creates native Google Sheets objects that are live and editable. It understands your spreadsheet's layout and data structure to provide accurate, actionable results.
🌐
coefficient.io
coefficient.io › home
IF CONTAINS Google Sheets: Mastering Conditional Data Searches
What is Coefficient?
Coefficient is a no-code spreadsheet automation platform that connects Google Sheets and Excel to 100+ business systems including Salesforce, HubSpot, QuickBooks, NetSuite, Snowflake, MySQL, Looker and more. It enables live data sync, automated refreshes, two-way data integration, and AI-powered insights without any coding required. Over 700,000 users trust Coefficient to automate their spreadsheet workflows.
🌐
coefficient.io
coefficient.io › home
IF CONTAINS Google Sheets: Mastering Conditional Data Searches
🌐
Excel Insider
excelinsider.com › home › our blog › google sheets basics › how to search for text in a range in google sheets
How to Search for Text in a Range in Google Sheets - Excel Insider
May 23, 2025 - Search for Text in Range in Google Sheets [Make a Copy] The easiest way is to use a COUNTIF formula. ➤ Try this: =COUNTIF(A2:A20, “Completed”) This tells you how many times “Completed” shows up in that range.
🌐
Google Support
support.google.com › docs › thread › 266394048 › check-if-a-range-contains-a-string
Check If A Range Contains A String - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Google Support
support.google.com › docs › thread › 11003543 › if-cells-in-range-contain-specific-text-return-cell-in-different-range
If cells in range contain specific text, return cell in different range? - Google Docs Editors Community
Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
Find elsewhere
🌐
Coefficient
coefficient.io › home
IF CONTAINS Google Sheets: Mastering Conditional Data Searches
February 20, 2024 - =IF(ISNUMBER(MATCH(“text”, range, 0)), “Found”, “Not found”) Regular expressions offer a powerful way to test if a cell’s content matches a specified pattern.
🌐
Modernschoolbus
modernschoolbus.com › home › how to check if a value is in a range in google sheets
How to Check If a Value is in a Range in Google Sheets
With this method, you can search for numbers, text values, and more. If you need to quickly search a range of cells to see if it contains a specific value, the COUNTIF function is the fastest way to do this.
🌐
Ablebits
ablebits.com › ablebits blog › excel › excel formulas › check if value exists in range in excel and google sheets
Check if value exists in range in Excel and Google Sheets
March 21, 2023 - For instance, to find whether the ... range contains a given substring, place a wildcard character (asterisk) on both sides of the lookup value so that COUNTIF looks for it anywhere in a cell:...
🌐
Automate Excel
automateexcel.com › home › 범위의 셀에 텍스트가 포함되어 있는지 확인 – excel 및 google 스프레드시트
Check if any Cell in a Range Contains Text - Excel & Google Sheets - Automate Excel
February 6, 2023 - The ISTEXT Function only tests a single cell, so we must find a way to test the entire range. This is where the SUMPRODUCT Function comes in. The SUMPRODUCT Function sums together arrays of values. So if we test each cell individually, outputting a 1 (TRUE) or 0 (FALSE) if each cell as text, ...
🌐
Reddit
reddit.com › r/sheets › conditional formatting if entire range contains text
r/sheets on Reddit: Conditional Formatting if Entire Range contains text
October 22, 2018 -

Hey everybody,
I'm having trouble figuring out a conditional formatting function.
I have a cell, that I would like to change color based on the text of several other cells...
I'm using this sheet to keep status on several parts of a project and want the "header" of each section to update if all sub-sections are marked as complete.

So, 3 things I want to happen...
I want cell A5 background to turn green IF all cells in a certain range contain the text "A" (or are blank)

If any of those cells contain any text other than "A" I want them to turn yellow

If any of the text contains the text "M" I want cell A5 to be RED.

not sure if this makes sense... I can't share the sheet because it is semi-confidential, but I might be able to make a duplicate, with different info if this doesn't make sense.

🌐
Google Support
support.google.com › docs › thread › 296695635 › is-there-a-formula-to-check-if-a-cell-contains-certain-text
is there a formula to check if a cell contains certain text? - Google Docs Editors Community
September 14, 2024 - Skip to main content · Google Docs Editors Help · Sign in · Google Help · Help Center · Community · Google Docs Editors · Terms of Service · Submit feedback · Send feedback on
🌐
Spreadsheet Point
spreadsheetpoint.com › home › formula posts › if contains google sheets: search + regexmatch
If Cell Contains Text in Google Sheets, Here Are the Fastest Formulas That Actually Work
There isn’t a specific IF CONTAINS function in Google Sheets. However, you can combine the IF and the SEARCH (or REGEXMATCH) function to determine whether a cell contains a particular value.
Published: January 9, 2026
🌐
Statology
statology.org › home › google sheets: how to use if function with text values
Google Sheets: How to Use IF Function with Text Values
July 31, 2023 - You can use the following formulas to use an IF function with text values in Google Sheets: ... This formula will return “Yes” if the value in cell A2 is “Starting Center” – otherwise it will return “No.” ... This formula will return “Yes” if the value in cell A2 contains “Guard” anywhere in the cell – otherwise it will return “No.” · Method 3: Check if Cell Contains One of Several Specific Texts
🌐
Excel Insider
excelinsider.com › home › our blog › google sheets functions › google sheets countif to check if a cell contains text
Google Sheets COUNTIF to Check If a Cell Contains Text - Excel Insider
August 1, 2025 - Google Sheets COUNTIF to Check If a Cell Contains Text [Make a Copy] Use =COUNTIF(range, “*”) to count only cells containing text. This excludes blank cells and numbers but includes all text entries, even partial words or phrases.
🌐
Statology
statology.org › home › google sheets: a simple formula for “if contains”
Google Sheets: A Simple Formula for "If Contains"
March 31, 2025 - The IF() combined with REGEXMATCH() formula gives you a flexible way to check if cells contain specific text in Google Sheets.
🌐
Google Support
support.google.com › docs › answer › 3093480
COUNTIF - Google Docs Editors Help
COUNTIFS: Returns the count of a range depending on multiple criteria.