---
title: "Count between two numbers with COUNTIFS in Google Sheets"
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://excelsavvy.com/sheets/practice/countifs/countifs-between-two-numbers"
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://excelsavvy.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"
  "twitter:image": "https://excelsavvy.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://excelsavvy.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**

**Your first month for $9.50 **~~$19~~

50% off your first month when you join today.

[**Get your first month for $9.50**](https://excelsavvy.com/signup?next=/pricing?plan=monthly%26go=1%26offer=FIRSTMONTH)

Then $19/month. Cancel any time, and get a full refund within 14 days if it isn't for you.

[**See all plans, from $5/month**](https://excelsavvy.com/pricing)

[**Already premium? Sign in**](https://excelsavvy.com/login?next=/sheets/practice/countifs/countifs-between-two-numbers)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://excelsavvy.com/#identity","@type":"Organization","name":"ExcelSavvy","url":"https://excelsavvy.com/","logo":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/#website","@type":"WebSite","inLanguage":"en-US","name":"ExcelSavvy","url":"https://excelsavvy.com/","alternateName":["Excel Savvy","ExcelSavvy.com","PracticeExcel","Practice Excel Online"],"publisher":{"@id":"https://excelsavvy.com/#identity"},"workTranslation":[{"@id":"https://excelopgaver.dk/#website"},{"@id":"https://excelpraxis.de/#website"}]},{"@id":"https://excelsavvy.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://excelsavvy.com/sheets/practice/countifs/countifs-between-two-numbers","breadcrumb":{"@id":"https://excelsavvy.com/sheets/practice/countifs/countifs-between-two-numbers#breadcrumb"},"isPartOf":{"@id":"https://excelsavvy.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://excelsavvy.com/sheets/practice/countifs/countifs-between-two-numbers"]}],"primaryImageOfPage":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/sheets/practice/countifs/countifs-between-two-numbers#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://excelsavvy.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://excelsavvy.com/sheets","position":2},{"@type":"ListItem","name":"COUNTIFS","item":"https://excelsavvy.com/sheets/practice/countifs","position":3},{"@type":"ListItem","name":"Count between two numbers with COUNTIFS in Google Sheets","position":4}]},{"@id":"https://excelsavvy.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://excelsavvy.com/#logo","@type":"ImageObject","caption":"ExcelSavvy","contentUrl":"https://excelsavvy.com/brand/practiceexcel/icon-512.png?v=3","inLanguage":"en-US","url":"https://excelsavvy.com/brand/practiceexcel/icon-512.png?v=3"}]}
```

## Sitemap

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