---
title: "COUNTIF practice exercises | PracticeExcel"
description: "Practice COUNTIF in a live spreadsheet with text, number and cell criteria."
canonical_url: "https://practiceexcelonline.com/practice/countif"
locale: en
meta:
  "og:description": "Practice COUNTIF in a live spreadsheet with text, number and cell criteria."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_COUNTIF%2Bpractice%2Bexercises%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiBpbiBhIGxpdmUgc3ByZWFkc2hlZXQgd2l0aCB0ZXh0LCBudW1iZXIgYW5kIGNlbGwgY3JpdGVyaWEu%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIk9yZGVyIiwiQ2l0eSIsIkZyb20gQ29wZW5oYWdlbiJdfSx7Im4iOjIsImNlbGxzIjpbIjEwMDEiLCJBYXJodXMiLCIiXX0seyJuIjozLCJjZWxscyI6WyIxMDAyIiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIjEwMDMiLCJPZGVuc2UiLCIiXX0seyJuIjo1LCJjZWxscyI6WyIxMDA0IiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIjEwMDUiLCJBYWxib3JnIiwiIl19XSwidGFyZ2V0IjpbMSwyXX19%2Cp_Ii9wcmFjdGljZS9jb3VudGlmIg%2Cs_cJ5yYOgCIP_o_XL4.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTIF practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_COUNTIF%2Bpractice%2Bexercises%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiBpbiBhIGxpdmUgc3ByZWFkc2hlZXQgd2l0aCB0ZXh0LCBudW1iZXIgYW5kIGNlbGwgY3JpdGVyaWEu%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIk9yZGVyIiwiQ2l0eSIsIkZyb20gQ29wZW5oYWdlbiJdfSx7Im4iOjIsImNlbGxzIjpbIjEwMDEiLCJBYXJodXMiLCIiXX0seyJuIjozLCJjZWxscyI6WyIxMDAyIiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIjEwMDMiLCJPZGVuc2UiLCIiXX0seyJuIjo1LCJjZWxscyI6WyIxMDA0IiwiQ29wZW5oYWdlbiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIjEwMDUiLCJBYWxib3JnIiwiIl19XSwidGFyZ2V0IjpbMSwyXX19%2Cp_Ii9wcmFjdGljZS9jb3VudGlmIg%2Cs_cJ5yYOgCIP_o_XL4.png"
---

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

# **COUNTIF practice exercises**

Count the cells that meet a condition: a text match, a number comparison or a criterion kept in its own cell.

[**Start the first exercise**](https://practiceexcelonline.com/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/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/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/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/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/practice/countif/countif-wildcard-contains)

## **Functions in this topic**

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

## **Read the guide**

- [**Excel for job interviews: what gets tested and how to prepare**](https://practiceexcelonline.com/learn/excel-for-job-interviews)
- [**Free Excel course online: learn Excel from your first formula to job-ready**](https://practiceexcelonline.com/learn/how-to-learn-excel)
- [**Pivot tables explained, and the formulas that do the same job**](https://practiceexcelonline.com/learn/pivot-tables)

```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#webpage","description":"Practice COUNTIF in a live spreadsheet with text, number and cell criteria.","name":"COUNTIF practice exercises","url":"https://practiceexcelonline.com/practice/countif","@type":["WebPage","CollectionPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/countif#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/countif"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/countif#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 practice exercises","position":3}]},{"@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.
