---
title: "Count with a wildcard | PracticeExcel"
description: "Practice COUNTIF with wildcards in a live spreadsheet: count the cells that contain a word."
canonical_url: "https://practiceexcelonline.com/practice/countif/countif-wildcard-contains"
locale: en
meta:
  "og:description": "Practice COUNTIF with wildcards in a live spreadsheet: count the cells that contain a word."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Bwith%2Ba%2Bwildcard%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiB3aXRoIHdpbGRjYXJkcyBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGNvdW50IHRoZSBjZWxscyB0aGF0IGNvbnRhaW4gYSB3b3JkLg%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkMiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlByb2R1Y3QiLCJDaGFpcnMiLCIiXX0seyJuIjoyLCJjZWxscyI6WyJPZmZpY2UgQ2hhaXIgUHJvIiwiIiwiIl19LHsibiI6MywiY2VsbHMiOlsiRGVzayBMYW1wIiwiIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiS2lkcyBDaGFpciIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIlN0YW5kaW5nIERlc2siLCIiLCIiXX0seyJuIjo2LCJjZWxscyI6WyJDaGFpciBDdXNoaW9uIiwiIiwiIl19XSwidGFyZ2V0IjpbMCwyXX19%2Cp_Ii9wcmFjdGljZS9jb3VudGlmL2NvdW50aWYtd2lsZGNhcmQtY29udGFpbnMi%2Cs_gnYQ25PdGUvcsCvb.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Count with a wildcard | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Bwith%2Ba%2Bwildcard%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiB3aXRoIHdpbGRjYXJkcyBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGNvdW50IHRoZSBjZWxscyB0aGF0IGNvbnRhaW4gYSB3b3JkLg%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkMiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlByb2R1Y3QiLCJDaGFpcnMiLCIiXX0seyJuIjoyLCJjZWxscyI6WyJPZmZpY2UgQ2hhaXIgUHJvIiwiIiwiIl19LHsibiI6MywiY2VsbHMiOlsiRGVzayBMYW1wIiwiIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiS2lkcyBDaGFpciIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIlN0YW5kaW5nIERlc2siLCIiLCIiXX0seyJuIjo2LCJjZWxscyI6WyJDaGFpciBDdXNoaW9uIiwiIiwiIl19XSwidGFyZ2V0IjpbMCwyXX19%2Cp_Ii9wcmFjdGljZS9jb3VudGlmL2NvdW50aWYtd2lsZGNhcmQtY29udGFpbnMi%2Cs_gnYQ25PdGUvcsCvb.png"
---

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

# **Count with a wildcard**

**Premium**

In D1, count the products in A2:A8 with the word Chair anywhere in the name. \* stands for any text, so the criterion is "\*Chair\*".

D1fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Product |  | Chairs |  |  | |
| 2 | Office Chair Pro |  |  |  |  | |
| 3 | Desk Lamp |  |  |  |  | |
| 4 | Kids Chair |  |  |  |  | |
| 5 | Standing Desk |  |  |  |  | |
| 6 | Chair Cushion |  |  |  |  | |
| 7 | Monitor Arm |  |  |  |  | |
| 8 | Gaming Chair |  |  |  |  | |
| 9 |  |  |  |  |  | |

**Premium lesson**

## **Unlock COUNTIF 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:**SUMIF****AVERAGEIF and AVERAGEIFS**

It comes up in this mock test: [**Excel assessment (Indeed format)**](https://practiceexcelonline.com/tests/indeed-excel-assessment)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/countif/countif-wildcard-contains)

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://practiceexcelonline.com/practice/countif/countif-wildcard-contains#webpage","description":"Practice COUNTIF with wildcards in a live spreadsheet: count the cells that contain a word.","name":"Count with a wildcard","url":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#/schema/question/1"},{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/countif/countif-wildcard-contains"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"COUNTIF","item":"https://practiceexcelonline.com/practice/countif","position":3},{"@type":"ListItem","name":"Count with a wildcard","position":4}]},{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I count cells that contain a word in Excel?","acceptedAnswer":{"@type":"Answer","text":"Use * on both sides of the word, =COUNTIF(A2:A8,\"*Chair*\"). It ignores case."}},{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"How do I count cells that contain a real asterisk?","acceptedAnswer":{"@type":"Answer","text":"Put a tilde in front of it, \"~*\"."}},{"@id":"https://practiceexcelonline.com/practice/countif/countif-wildcard-contains#/schema/learning-resource/1","@type":"LearningResource","description":"Practice COUNTIF with wildcards in a live spreadsheet: count the cells that contain a word.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Count with a wildcard","teaches":"COUNTIF"},{"@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.
