You can use REGEXMATCH:

=IF(REGEXMATCH(A1, "sites"), 1, 0)

REGEXMATCH returns true if the first argument matches the regular expression given by the second argument. As long as the second argument has no regex special metacharacters (^ $ \ . * + ? ( ) [ ] { } |), this returns true if that argument is a substring of your string.

Answer from Aurielle Perlmann on Stack Exchange
🌐
Google Support
support.google.com › docs › answer › 7014145
IFS function - Google Docs Editors Help
Tests an expression against a list of cases and returns the corresponding value of the first matching case, with an optional default value if nothing else is met.
Discussions

is there a formula to check if a cell contains certain text? - 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
September 14, 2024
IF formula with 3 values/conditions
And if I need to add another condition to the formula =IFS(A1<5,0.1,A1<9,0.12,A1>=9,0.15), specifically: if cell C1 contains text "Individual", then value will be 60%. How can I combine it so the cell B1 will show me 60% if text "Individual" in cell C1? :) thank you! More on reddit.com
🌐 r/googlesheets
8
1
January 30, 2023
IF CONTAINS formula Google Sheets
I've been trying to use a formula similar to IF a cell CONTAINS this, then do this. Specifically, I want the formula to evaluate if the 'A' column… More on reddit.com
🌐 r/googlesheets
11
6
November 29, 2022
IFS formula with both text and numbers
1 is a number and "1" is a string. Assuming you want to check for numbers, use: =IFS([@ColumnName]="A","yes",[@ColumnName]=1,"no") More on reddit.com
🌐 r/excel
7
0
September 21, 2023
People also ask

What is the difference between IF and IFS in Google Sheets?
IF checks one condition and returns one of two values. IFS checks multiple conditions in order and returns the value for the first true condition. IFS replaces deeply nested IF statements with a flat, readable formula.
🌐
sheetsbootcamp.com
sheetsbootcamp.com › home › if statements › google sheets if function: complete guide
Google Sheets IF Function: Complete Guide | Sheets Bootcamp
Can you nest IF statements in Google Sheets?
Yes. Place another IF function inside the value_if_true or value_if_false argument. For example, =IF(A1&gt;=90, "A", IF(A1&gt;=80, "B", "C")) checks multiple conditions in sequence. Google Sheets supports nesting, but beyond 3 levels, IFS is cleaner.
🌐
sheetsbootcamp.com
sheetsbootcamp.com › home › if statements › google sheets if function: complete guide
Google Sheets IF Function: Complete Guide | Sheets Bootcamp
How do you write an IF/THEN formula in Google Sheets?
Use the syntax =IF(condition, value_if_true, value_if_false). The condition is any expression that evaluates to TRUE or FALSE. For example, =IF(B2="Yes", "Complete", "Pending") checks if B2 contains "Yes" and returns the appropriate status.
🌐
sheetsbootcamp.com
sheetsbootcamp.com › home › if statements › google sheets if function: complete guide
Google Sheets IF Function: Complete Guide | Sheets Bootcamp
🌐
Coefficient
coefficient.io › home
IF CONTAINS Google Sheets: Mastering Conditional Data Searches
February 20, 2024 - While Google Sheets lacks a direct “IF CONTAINS” function, a clever mix of “IF” with “REGEXMATCH” or “SEARCH” can get the job done.
🌐
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.
🌐
Dokin
dokin.co › blog-posts › if-contains-in-google-sheets---easy
IF CONTAINS in Google Sheets - Easy! - Dokin
January 19, 2024 - ... In conclusion, even though "Google Sheets contains" functionality does not exist, there’s an easy workaround, made possible by combining the REGEXMATCH function with IF statements.
🌐
Ablebits
ablebits.com › ablebits blog › google sheets tips › google sheets functions › google sheets if function – usage and formula examples
Google Sheets IF function – usage and formula examples
February 27, 2023 - One of the questions we get asked a lot is how to create the IF formula that will return whatever you need if the column contains or doesn't contain a certain record. For example, check if a customer's name appears more than once in a list (column A) and put the corresponding word (yes/no) into a cell. A solution is simpler than you may think. You need to introduce the COUNTIF function to your IF: ... If you're tired of keeping track of all those extra characters and proper syntax in formulas, there's another solution available. IF Formula Builder add-on for Google Sheets offers a visual way of creating IF statements.
Find elsewhere
🌐
FormulasHQ
formulashq.com › home › blog › how to do an if contains statement in google sheets?
How to do an if contains statement in Google Sheets? — FormulasHQ
October 9, 2024 - Whether you need a budget tracker, ... "if contains" statement is a powerful tool that allows you to perform conditional calculations based on whether a cell contains a specific value or substring....
🌐
Ben Collins
benlcollins.com › home › ifs function in google sheets
IFS Function in Google Sheets
June 20, 2024 - Google Sheets and Workspace Updates ... it) The IFS function in Google Sheets is used to test multiple conditions and outputs a value specified by the first test that evaluates to true....
🌐
Sheets Bootcamp
sheetsbootcamp.com › home › if statements › google sheets if function: complete guide
Google Sheets IF Function: Complete Guide | Sheets Bootcamp
How do you write an IF/THEN formula in Google Sheets? Use the syntax =IF(condition, value_if_true, value_if_false). The condition is any expression that evaluates to TRUE or FALSE.
Published: February 18, 2026
🌐
Owox
owox.com › blog › articles › google sheets tips › how to use the ifs function in google sheets for advanced conditional logic
Master Google Sheets IFS Function: Advanced Guide for 2025
May 14, 2026 - COUNT: Allies the number of cells containing numbers within a specified range, useful for quantitative data summarization. FILTER: Extracts rows or columns from a specified range that meet given conditions, streamlining data analysis and management. GOOGLEFINANCE: Retrieves real-time financial data from Google Finance, including stock prices, currency exchange rates, and market indices. Mastering the IFS function in Google Sheets is a stepping stone to more complex data manipulation.
🌐
Spreadsheet Point
spreadsheetpoint.com › home › formula posts › ifs function in google sheets: easy guide
IFS Function in Google Sheets: Easy Guide for 2026 | SSP
December 27, 2022 - IFS is part of the IF statement family of functions in Google Sheets that searches if multiple parameters are true or false and returns a result based on the retrieved response. It works similar to IF, IFNA, and IF Contains.
🌐
Google Sheets
sheetsformarketers.com › home › blog › how to use if contains in google sheets
How to Use IF CONTAINS in Google Sheets - Sheets for Marketers
April 13, 2023 - We can create our own IF CONTAINS formula with either the REGEXMATCH or SEARCH functions. These functions are similar since they both allow you to check if a cell contains a particular string of text. In this guide, we will show you how to use IF, REGEXMATCH, and SEARCH functions in Google Sheets.
🌐
How-To Geek
howtogeek.com › home › web › how to use the google sheets if function
How to Use the Google Sheets IF Function
January 7, 2020 - Replace "test" with your logical test and then replace the "value_if_true" and "value_if_false" arguments with the operation or result that Google Sheets will provide when the result is either TRUE or FALSE. In the example shown below, an IF statement is used to test the value of cell B3. If cell B3 contains the letter B, then the TRUE value will be returned in cell A3.
🌐
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
See how to use IF CONTAINS to see whether a cell contains a specified value. Includes visuals, copy/paste formulas, and common error fixes.
Published: January 9, 2026
🌐
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
🌐
InfoInspired
infoinspired.com › home › google docs › spreadsheet › how to use ifs logical function in google sheets
How to Use IFS Logical Function in Google Sheets
December 12, 2023 - In certain situations, the IFS function cannot return an array result, requiring the use of IF or VLOOKUP, as explained in my tutorial: How to Use IFS Function to Return an Array Result in Google Sheets. Here, we are going to learn how to use nested IF instead of an IFS formula. In the following example, we have a drop-down in cell B1 containing the items “Tea,” “Coffee,” and “Milk Shake.”
🌐
GeeksforGeeks
geeksforgeeks.org › google sheets › if-function-google-sheets
Google Sheets IF Function: Ultimate Guide - GeeksforGeeks
September 27, 2025 - Use the IF function to check if a cell is empty or contains data. This is useful for tracking missing entries. Open Google Sheets and navigate to the spreadsheet where you want to use the IF function.
🌐
WPS Office
wps.com › blog › how-to-use-if-contains-function-to-check-text-in-google-sheets-with-examples
How to Use IF CONTAINS Function to Check Text in Google Sheets (With Examples)
June 1, 2026 - No tech jargon, just easy steps to make your sheets work for you. Let’s make Google Sheets your data buddy! ... Usefulness: The IF function in Google Sheets is used for conditional logic.
🌐
W3Schools
w3schools.com › googlesheets › google_sheets_ifs.php
Google Sheets IFS Function
GS Sort GS Sort Sheet GS Sort By ... The IFS function is a premade function in Google Sheets, which returns values based on one or more true or false conditions....
🌐
Sheets Bootcamp
sheetsbootcamp.com › home › functions › if function in google sheets
IF Function in Google Sheets | Sheets Bootcamp
February 19, 2026 - If you omit value_if_false, Google Sheets returns FALSE by default when the condition is not met. You can pass an empty string "" to return a blank cell instead. Check whether a score in B2 meets a passing threshold of 70: ... If B2 contains 85, this returns “Pass”. If B2 contains 60, it ...