---
title: "COUNTIFS with two conditions | PracticeExcel"
description: "Practice COUNTIFS in a live spreadsheet: count the rows that match two conditions."
canonical_url: "https://practiceexcelonline.com/practice/countifs/countifs-two-conditions"
locale: en
meta:
  "og:description": "Practice COUNTIFS in a live spreadsheet: count the rows that match two conditions."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_COUNTIFS%2Bwith%2Btwo%2Bconditions%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRlMgaW4gYSBsaXZlIHNwcmVhZHNoZWV0OiBjb3VudCB0aGUgcm93cyB0aGF0IG1hdGNoIHR3byBjb25kaXRpb25zLg%2Ceyebrow_COUNTIFS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJQcm9kdWN0IiwiU2FsZXMiLCJOb3J0aCBvdmVyIDQwMCJdfSx7Im4iOjIsImNlbGxzIjpbIk5vcnRoIiwiU2hvZXMiLCI1MDAiLCIiXX0seyJuIjozLCJjZWxscyI6WyJTb3V0aCIsIlNob2VzIiwiMzAwIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTm9ydGgiLCJCYWdzIiwiMjUwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiTm9ydGgiLCJTaG9lcyIsIjQyMCIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlNvdXRoIiwiQmFncyIsIjE4MCIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9wcmFjdGljZS9jb3VudGlmcy9jb3VudGlmcy10d28tY29uZGl0aW9ucyI%2Cs_j7UYwtM1VUBPXbbd.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTIFS with two conditions | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_COUNTIFS%2Bwith%2Btwo%2Bconditions%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRlMgaW4gYSBsaXZlIHNwcmVhZHNoZWV0OiBjb3VudCB0aGUgcm93cyB0aGF0IG1hdGNoIHR3byBjb25kaXRpb25zLg%2Ceyebrow_COUNTIFS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZWdpb24iLCJQcm9kdWN0IiwiU2FsZXMiLCJOb3J0aCBvdmVyIDQwMCJdfSx7Im4iOjIsImNlbGxzIjpbIk5vcnRoIiwiU2hvZXMiLCI1MDAiLCIiXX0seyJuIjozLCJjZWxscyI6WyJTb3V0aCIsIlNob2VzIiwiMzAwIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiTm9ydGgiLCJCYWdzIiwiMjUwIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiTm9ydGgiLCJTaG9lcyIsIjQyMCIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlNvdXRoIiwiQmFncyIsIjE4MCIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9wcmFjdGljZS9jb3VudGlmcy9jb3VudGlmcy10d28tY29uZGl0aW9ucyI%2Cs_j7UYwtM1VUBPXbbd.png"
---

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

# **COUNTIFS with two conditions**

1.
2.
3.

Step 1 of 3

**COUNTIFS** counts the rows where every condition holds. It takes pairs: a range, then the condition for that range.

Click **Continue** when you're ready.

Already know it? Type the formula straight into E2.

E2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | North over 400 | |
| 2 | North | Shoes | 500 |  |  | |
| 3 | South | Shoes | 300 |  |  | |
| 4 | North | Bags | 250 |  |  | |
| 5 | North | Shoes | 420 |  |  | |
| 6 | South | Bags | 180 |  |  | |
| 7 | North | Bags | 150 |  |  | |
| 8 | South | Shoes | 610 |  |  | |
| 9 | North | Shoes | 90 |  |  | |
| 10 |  |  |  |  |  | |

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/countifs/countifs-two-conditions#webpage","@type":"WebPage","description":"Practice COUNTIFS in a live spreadsheet: count the rows that match two conditions.","name":"COUNTIFS with two conditions","url":"https://practiceexcelonline.com/practice/countifs/countifs-two-conditions","breadcrumb":{"@id":"https://practiceexcelonline.com/practice/countifs/countifs-two-conditions#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/countifs/countifs-two-conditions"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/countifs/countifs-two-conditions#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":"COUNTIFS","item":"https://practiceexcelonline.com/practice/countifs","position":3},{"@type":"ListItem","name":"COUNTIFS with two conditions","position":4}]},{"@id":"https://practiceexcelonline.com/practice/countifs/countifs-two-conditions#/schema/learning-resource/1","@type":"LearningResource","description":"Practice COUNTIFS in a live spreadsheet: count the rows that match two conditions.","educationalLevel":"intermediate","isAccessibleForFree":true,"learningResourceType":"exercise","name":"COUNTIFS with two conditions","teaches":"COUNTIFS"},{"@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.
