---
title: "COUNTIF in Google Sheets: practice exercises | PracticeExcel"
description: "Practice COUNTIF in Google Sheets: count the cells that meet a condition, in exercises that are checked as you type."
canonical_url: "https://practiceexcelonline.com/sheets/practice/countif"
locale: en
meta:
  "og:description": "Practice COUNTIF in Google Sheets: count the cells that meet a condition, in exercises that are checked as you type."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgY2VsbHMgdGhhdCBtZWV0IGEgY29uZGl0aW9uLCBpbiBleGVyY2lzZXMgdGhhdCBhcmUgY2hlY2tlZCBhcyB5b3UgdHlwZS4%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIk9yZGVyIiwiQ2l0eSIsIkZyb20gQ29wZW5oYWdlbiJdfSx7Im4iOjIsImNlbGxzIjpbIjEwMDEiLCJBYXJodXMiLCIiXX0seyJuIjozLCJjZWxscyI6WyIxMDAyIiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIjEwMDMiLCJPZGVuc2UiLCIiXX0seyJuIjo1LCJjZWxscyI6WyIxMDA0IiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIjEwMDUiLCJBYWxib3JnIiwiIl19XSwidGFyZ2V0IjpbMSwyXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvY291bnRpZiI%2Cs_ppGS8oFHHJpi5b5F.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTIF in Google Sheets: practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBwcmFjdGljZSBleGVyY2lzZXM%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBjb3VudCB0aGUgY2VsbHMgdGhhdCBtZWV0IGEgY29uZGl0aW9uLCBpbiBleGVyY2lzZXMgdGhhdCBhcmUgY2hlY2tlZCBhcyB5b3UgdHlwZS4%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIk9yZGVyIiwiQ2l0eSIsIkZyb20gQ29wZW5oYWdlbiJdfSx7Im4iOjIsImNlbGxzIjpbIjEwMDEiLCJBYXJodXMiLCIiXX0seyJuIjozLCJjZWxscyI6WyIxMDAyIiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIjEwMDMiLCJPZGVuc2UiLCIiXX0seyJuIjo1LCJjZWxscyI6WyIxMDA0IiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIjEwMDUiLCJBYWxib3JnIiwiIl19XSwidGFyZ2V0IjpbMSwyXX19%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvY291bnRpZiI%2Cs_ppGS8oFHHJpi5b5F.png"
---

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

# **COUNTIF practice in Google Sheets**

COUNTIF counts the cells in a range that meet one condition. In Google Sheets it takes the same two arguments as in Excel and understands the same operators and wildcards.

[**Start the first exercise**](https://practiceexcelonline.com/sheets/practice/countif/countif-text)

COUNTIF(

1. [**1****COUNTIF with a text condition**In D2, use COUNTIF to count how many orders in B2:B8 came from Copenhagen.](https://practiceexcelonline.com/sheets/practice/countif/countif-text)
2. [**2****COUNTIF with a number condition****Premium**In D2, use COUNTIF to count the invoices in B2:B8 of 1500 or more.](https://practiceexcelonline.com/sheets/practice/countif/countif-greater-than)
3. [**3****COUNTIF with the limit in a cell****Premium**In E2, count the products in B2:B7 with stock below the reorder level in E1. Join "<" and E1 with &, so the count follows when E1 changes.](https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell)
4. [**4****Count everything except one value****Premium**In E1, count the tickets in B2:B8 whose status is anything but Closed. "Not equal to" is <>, so the criterion is "<>Closed".](https://practiceexcelonline.com/sheets/practice/countif/countif-not-equal)
5. [**5****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\*".](https://practiceexcelonline.com/sheets/practice/countif/countif-wildcard-contains)

## **Functions in this topic**

- [**COUNTIF**](https://practiceexcelonline.com/sheets/functions/countif)

## **Questions**

<details>

<summary>

### How do I count cells that are not empty with COUNTIF in Google Sheets?

</summary>

Use "&lt;&gt;" as the criterion: =COUNTIF(A2:A10,"&lt;&gt;") counts every cell in A2:A10 that is not empty, as it does in Excel.

</details>

```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/sheets/practice/countif#webpage","description":"Practice COUNTIF in Google Sheets: count the cells that meet a condition, in exercises that are checked as you type.","name":"COUNTIF in Google Sheets: practice exercises","url":"https://practiceexcelonline.com/sheets/practice/countif","@type":["WebPage","CollectionPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/countif#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/sheets/practice/countif#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/countif"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/countif#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":"COUNTIF in Google Sheets: practice exercises","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/practice/countif#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I count cells that are not empty with COUNTIF in Google Sheets?","acceptedAnswer":{"@type":"Answer","text":"Use \"\u003C>\" as the criterion: =COUNTIF(A2:A10,\"\u003C>\") counts every cell in A2:A10 that is not empty, as it does in Excel."}},{"@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.
