---
title: "COUNTIF in Google Sheets: syntax and examples | PracticeExcel"
description: "Counts the cells in a range that meet one condition. Text conditions ignore upper and lower case. With examples and exercises in Google Sheets."
canonical_url: "https://practiceexcelonline.com/sheets/functions/countif"
locale: en
meta:
  "og:description": "Counts the cells in a range that meet one condition. Text conditions ignore upper and lower case. With examples and exercises in Google Sheets."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_Counts%2Bthe%2Bcells%2Bin%2Ba%2Brange%2Bthat%2Bmeet%2Bone%2Bcondition.%2BText%2Bconditions%2Bignore%2Bupper%2Band%2Blower%2Bcase.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRJRihyYW5nZSwgY3JpdGVyaWEp%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50aWYi%2Cs_neB5fSvQRg2CYFEI.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTIF in Google Sheets: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_Counts%2Bthe%2Bcells%2Bin%2Ba%2Brange%2Bthat%2Bmeet%2Bone%2Bcondition.%2BText%2Bconditions%2Bignore%2Bupper%2Band%2Blower%2Bcase.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRJRihyYW5nZSwgY3JpdGVyaWEp%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50aWYi%2Cs_neB5fSvQRg2CYFEI.png"
---

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

# **COUNTIF in Google Sheets**

Counts the cells in a range that meet one condition. Text conditions ignore upper and lower case.

=

COUNTIF(

## **In Google Sheets**

COUNTIF takes the same two arguments in Google Sheets and understands the same operators and wildcards.

## **Syntax**

```
COUNTIF(range, criteria)
```

<dl><dt>**range **</dt>
<dd>The cells to count.</dd>
<dt>**criteria **</dt>
<dd>The condition, such as "North", "&gt;=300", "*shoe*" or a cell.</dd></dl>

## **Examples**

E1`=COUNTIF(<sup>1</sup>A2:A6,<sup>2</sup>"North")`

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **3** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

**In plain words:** Count the cells <sup>1</sup>in A2:A6 that say <sup>2</sup>North.

E1=COUNTIF(C2:C6,">=300")

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **3** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

## **Practice COUNTIF**

- [**1****COUNTIF with a text condition**→](https://practiceexcelonline.com/sheets/practice/countif/countif-text)
- [**2****COUNTIF with a number condition**→](https://practiceexcelonline.com/sheets/practice/countif/countif-greater-than)
- [**3****COUNTIF with the limit in a cell**→](https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell)
- [**4****Count everything except one value**→](https://practiceexcelonline.com/sheets/practice/countif/countif-not-equal)
- [**5****Count with a wildcard**→](https://practiceexcelonline.com/sheets/practice/countif/countif-wildcard-contains)

## **Related functions**

- [**COUNTIFS**](https://practiceexcelonline.com/sheets/functions/countifs)
- [**SUMIF**](https://practiceexcelonline.com/sheets/functions/sumif)
- [**COUNTA**](https://practiceexcelonline.com/functions/counta)

```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/functions/countif#webpage","@type":"WebPage","description":"Counts the cells in a range that meet one condition. Text conditions ignore upper and lower case. With examples and exercises in Google Sheets.","name":"COUNTIF in Google Sheets: syntax and examples","url":"https://practiceexcelonline.com/sheets/functions/countif","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/functions/countif#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/functions/countif"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/functions/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: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/functions/countif#article","description":"Counts the cells in a range that meet one condition. Text conditions ignore upper and lower case. With examples and exercises in Google Sheets.","headline":"COUNTIF in Google Sheets: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_Counts%2Bthe%2Bcells%2Bin%2Ba%2Brange%2Bthat%2Bmeet%2Bone%2Bcondition.%2BText%2Bconditions%2Bignore%2Bupper%2Band%2Blower%2Bcase.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRJRihyYW5nZSwgY3JpdGVyaWEp%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50aWYi%2Cs_neB5fSvQRg2CYFEI.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/sheets/functions/countif#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/sheets/functions/countif#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@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"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_Counts%2Bthe%2Bcells%2Bin%2Ba%2Brange%2Bthat%2Bmeet%2Bone%2Bcondition.%2BText%2Bconditions%2Bignore%2Bupper%2Band%2Blower%2Bcase.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRJRihyYW5nZSwgY3JpdGVyaWEp%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50aWYi%2Cs_neB5fSvQRg2CYFEI.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~Q09VTlRJRiBpbiBHb29nbGUgU2hlZXRzOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_Counts%2Bthe%2Bcells%2Bin%2Ba%2Brange%2Bthat%2Bmeet%2Bone%2Bcondition.%2BText%2Bconditions%2Bignore%2Bupper%2Band%2Blower%2Bcase.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~Q09VTlRJRihyYW5nZSwgY3JpdGVyaWEp%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2NvdW50aWYi%2Cs_neB5fSvQRg2CYFEI.png"}]}
```

## Sitemap

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