Google Sheets: Using IF(CONTAINS) to Search for Text in Cells

Use natural language to write 'if cell contains text' with AI

Google Sheets: Using IF(CONTAINS) to Search for Text in Cells

The IF(CONTAINS) Formula in Google Sheets

The IF(CONTAINS) formula in Google Sheets is used to check if a cell contains a specific text or substring.

Here's how to use it:

  1. Start by typing =IF( in the cell where you want the result to appear.
  2. Next, type CONTAINS( followed by the cell reference or range you want to check for the specific text or substring, and then the text or substring you are looking for in double quotes.
  3. After that, type a comma (,) and then the value you want to display if the text or substring is found.
  4. Finally, type a comma (,) and then the value you want to display if the text or substring is not found, followed by a closing parenthesis ).

For example, if you want to check if cell A1 contains the text "apple" and display "Yes" if it does and "No" if it doesn't, you would use the formula:

=IF(CONTAINS(A1, "apple"), "Yes", "No")

Now you can use simple words to process data. It's at CapGo AI Sheet. For Google Sheet formula:

=IF(ISNUMBER(SEARCH("text", A1)), "Found", "Not Found")

You can write a simple instruction:

"Check if #A contains the word 'text' and return 'Found' if true, otherwise return 'Not Found'."

In 1 second, all your data is processed!

Try it now at CapGo.AI

Read more

SEO 与 GEO 101:从“被搜索”到“进入答案” - 2026指南

SEO 与 GEO 101:从“被搜索”到“进入答案” - 2026指南

在过去,SEO 的目标很简单: 让你的页面出现在 Google 结果里。 但现在,这个游戏已经变了。 用户不再只是“搜索”,而是直接问 AI。 而 AI 会帮他们总结答案。 所以今天你需要理解两件事: 概念本质SEO被 Google 推荐GEO(Generative Engine Optimization)被 AI 引擎选中并总结 👉 SEO 是进入候选列表 👉 GEO 是进入最终答案 一、SEO 的本质:不是内容,而是“被推荐” 很多人误解 SEO,以为是: * 写文章 * 做关键词 * 做外链 但真正的本质是: SEO = 最能满足用户的搜索意图 思考 - 这个搜索词表明用户到底想要找什么信息 Google面对的是一个问题: 在几千个结果中,谁最能满足用户?

By CapGo AI - by YG