---
title: "IF a cell contains a word in Google Sheets | PracticeExcel"
description: "In B2, show \"Pro\" if the product name in A2 contains \"pro\" anywhere, and \"Standard\" if it does not. IF has no wildcards, so test with ISNUMBER(SEARCH(\"pro\",A2))."
canonical_url: "https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text"
meta:
  "og:description": "In B2, show \"Pro\" if the product name in A2 contains \"pro\" anywhere, and \"Standard\" if it does not. IF has no wildcards, so test with ISNUMBER(SEARCH(\"pro\",A2))."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_IF%2Ba%2Bcell%2Bcontains%2Ba%2Bword%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gQjIsIHNob3cgIlBybyIgaWYgdGhlIHByb2R1Y3QgbmFtZSBpbiBBMiBjb250YWlucyAicHJvIiBhbnl3aGVyZSwgYW5kICJTdGFuZGFyZCIgaWYgaXQgZG9lcyBub3QuIElGIGhhcyBubyB3aWxkY2FyZHMsIHNvIHRlc3Qgd2l0aCBJU05VTUJFUihTRUFSQ0goInBybyIsQTIpKS4%2Ceyebrow_IF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiUHJvZHVjdCIsIkxpbmUiXX0seyJuIjoyLCJjZWxscyI6WyJMYXB0b3AgUFJPIDE0IiwiIl19LHsibiI6MywiY2VsbHMiOlsiV2lyZWxlc3MgbW91c2UiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJNb25pdG9yIFBybyAyNyIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIktleWJvYXJkIiwiIl19XSwidGFyZ2V0IjpbMSwxXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaWYvaWYtY2VsbC1jb250YWlucy10ZXh0Ig%2Cs_BxHGYlxULEmHxyuI.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IF a cell contains a word in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_IF%2Ba%2Bcell%2Bcontains%2Ba%2Bword%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gQjIsIHNob3cgIlBybyIgaWYgdGhlIHByb2R1Y3QgbmFtZSBpbiBBMiBjb250YWlucyAicHJvIiBhbnl3aGVyZSwgYW5kICJTdGFuZGFyZCIgaWYgaXQgZG9lcyBub3QuIElGIGhhcyBubyB3aWxkY2FyZHMsIHNvIHRlc3Qgd2l0aCBJU05VTUJFUihTRUFSQ0goInBybyIsQTIpKS4%2Ceyebrow_IF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiUHJvZHVjdCIsIkxpbmUiXX0seyJuIjoyLCJjZWxscyI6WyJMYXB0b3AgUFJPIDE0IiwiIl19LHsibiI6MywiY2VsbHMiOlsiV2lyZWxlc3MgbW91c2UiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJNb25pdG9yIFBybyAyNyIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIktleWJvYXJkIiwiIl19XSwidGFyZ2V0IjpbMSwxXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaWYvaWYtY2VsbC1jb250YWlucy10ZXh0Ig%2Cs_BxHGYlxULEmHxyuI.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **IF a cell contains a word**

**Premium**

In B2, show "Pro" if the product name in A2 contains "pro" anywhere, and "Standard" if it does not. IF has no wildcards, so test with ISNUMBER(SEARCH("pro",A2)).

B2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Product | Line |  |  |  | |
| 2 | Laptop PRO 14 |  |  |  |  | |
| 3 | Wireless mouse |  |  |  |  | |
| 4 | Monitor Pro 27 |  |  |  |  | |
| 5 | Keyboard |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock IF and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**COUNTIF****SUMIF**

**Your first month for $9.50 **~~$19~~

50% off your first month when you join today.

[**Get your first month for $9.50**](https://practiceexcelonline.com/signup?next=/pricing?plan=monthly%26go=1%26offer=FIRSTMONTH)

Then $19/month. Cancel any time, and get a full refund within 14 days if it isn't for you.

[**See all plans, from $5/month**](https://practiceexcelonline.com/pricing)

[**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/sheets/practice/if/if-cell-contains-text)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":[{"@id":"https://excelopgaver.dk/#website"},{"@id":"https://excelpraxis.de/#website"}]},{"@id":"https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text#webpage","@type":"WebPage","description":"In B2, show \"Pro\" if the product name in A2 contains \"pro\" anywhere, and \"Standard\" if it does not. IF has no wildcards, so test with ISNUMBER(SEARCH(\"pro\",A2)).","name":"IF a cell contains a word in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"IF","item":"https://practiceexcelonline.com/sheets/practice/if","position":3},{"@type":"ListItem","name":"IF a cell contains a word in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/if/if-cell-contains-text#/schema/learning-resource/1","@type":"LearningResource","description":"In B2, show \"Pro\" if the product name in A2 contains \"pro\" anywhere, and \"Standard\" if it does not. IF has no wildcards, so test with ISNUMBER(SEARCH(\"pro\",A2)).","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"IF a cell contains a word","teaches":"IF"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
