---
title: "Count between two numbers with COUNTIFS in Google Sheets | PracticeExcel"
description: "In E2, use COUNTIFS to count the people in B2:B8 aged 18 to 30, both ages included. Use the same range twice, once for each limit."
canonical_url: "https://practiceexcelonline.com/sheets/practice/countifs/countifs-between-two-numbers"
locale: en
meta:
  "og:description": "In E2, use COUNTIFS to count the people in B2:B8 aged 18 to 30, both ages included. Use the same range twice, once for each limit."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Bbetween%2Btwo%2Bnumbers%2Bwith%2BCOUNTIFS%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRTIsIHVzZSBDT1VOVElGUyB0byBjb3VudCB0aGUgcGVvcGxlIGluIEIyOkI4IGFnZWQgMTggdG8gMzAsIGJvdGggYWdlcyBpbmNsdWRlZC4gVXNlIHRoZSBzYW1lIHJhbmdlIHR3aWNlLCBvbmNlIGZvciBlYWNoIGxpbWl0Lg%2Ceyebrow_COUNTIFS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJOYW1lIiwiQWdlIiwiIiwiIl19LHsibiI6MiwiY2VsbHMiOlsiQWxpIiwiMTciLCJBZ2VkIDE4IHRvIDMwIiwiIl19LHsibiI6MywiY2VsbHMiOlsiQm8iLCIyMiIsIiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIkN5IiwiMzEiLCIiLCIiXX0seyJuIjo1LCJjZWxscyI6WyJEaSIsIjMwIiwiIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiRWQiLCIxOCIsIiIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvY291bnRpZnMvY291bnRpZnMtYmV0d2Vlbi10d28tbnVtYmVycyI%2Cs_DZ8tg0K_Ct8TcEty.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Count between two numbers with COUNTIFS in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Bbetween%2Btwo%2Bnumbers%2Bwith%2BCOUNTIFS%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRTIsIHVzZSBDT1VOVElGUyB0byBjb3VudCB0aGUgcGVvcGxlIGluIEIyOkI4IGFnZWQgMTggdG8gMzAsIGJvdGggYWdlcyBpbmNsdWRlZC4gVXNlIHRoZSBzYW1lIHJhbmdlIHR3aWNlLCBvbmNlIGZvciBlYWNoIGxpbWl0Lg%2Ceyebrow_COUNTIFS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJOYW1lIiwiQWdlIiwiIiwiIl19LHsibiI6MiwiY2VsbHMiOlsiQWxpIiwiMTciLCJBZ2VkIDE4IHRvIDMwIiwiIl19LHsibiI6MywiY2VsbHMiOlsiQm8iLCIyMiIsIiIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIkN5IiwiMzEiLCIiLCIiXX0seyJuIjo1LCJjZWxscyI6WyJEaSIsIjMwIiwiIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiRWQiLCIxOCIsIiIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvY291bnRpZnMvY291bnRpZnMtYmV0d2Vlbi10d28tbnVtYmVycyI%2Cs_DZ8tg0K_Ct8TcEty.png"
---

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

# **Count between two numbers with COUNTIFS**

**Premium**

In E2, use COUNTIFS to count the people in B2:B8 aged 18 to 30, both ages included. Use the same range twice, once for each limit.

E2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Name | Age |  |  |  | |
| 2 | Ali | 17 |  | Aged 18 to 30 |  | |
| 3 | Bo | 22 |  |  |  | |
| 4 | Cy | 31 |  |  |  | |
| 5 | Di | 30 |  |  |  | |
| 6 | Ed | 18 |  |  |  | |
| 7 | Fi | 45 |  |  |  | |
| 8 | Gu | 26 |  |  |  | |
| 9 |  |  |  |  |  | |

**Premium lesson**

## **Unlock COUNTIFS 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:**VLOOKUP****INDEX and MATCH**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/sheets/practice/countifs/countifs-between-two-numbers)

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/sheets/practice/countifs/countifs-between-two-numbers#webpage","@type":"WebPage","description":"In E2, use COUNTIFS to count the people in B2:B8 aged 18 to 30, both ages included. Use the same range twice, once for each limit.","name":"Count between two numbers with COUNTIFS in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/countifs/countifs-between-two-numbers","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/countifs/countifs-between-two-numbers#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/countifs/countifs-between-two-numbers"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/countifs/countifs-between-two-numbers#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":"COUNTIFS","item":"https://practiceexcelonline.com/sheets/practice/countifs","position":3},{"@type":"ListItem","name":"Count between two numbers with COUNTIFS in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/countifs/countifs-between-two-numbers#/schema/learning-resource/1","@type":"LearningResource","description":"In E2, use COUNTIFS to count the people in B2:B8 aged 18 to 30, both ages included. Use the same range twice, once for each limit.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Count between two numbers with COUNTIFS","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.
