---
title: "COUNTIF with the limit in a cell | ExcelSavvy"
description: "Practice COUNTIF in a live spreadsheet: join an operator and a cell into the criterion."
canonical_url: "https://excelsavvy.com/practice/countif/countif-criteria-from-a-cell"
meta:
  "og:description": "Practice COUNTIF in a live spreadsheet: join an operator and a cell into the criterion."
  "og:image": "https://excelsavvy.com/_og/d/c_Page%2Ctitle_COUNTIF%2Bwith%2Bthe%2Blimit%2Bin%2Ba%2Bcell%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGpvaW4gYW4gb3BlcmF0b3IgYW5kIGEgY2VsbCBpbnRvIHRoZSBjcml0ZXJpb24u%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiU3RvY2siLCJSZW9yZGVyIGxldmVsIiwiNDAiXX0seyJuIjoyLCJjZWxscyI6WyJQZW5zIiwiMzUiLCJUbyByZW9yZGVyIiwiIl19LHsibiI6MywiY2VsbHMiOlsiUGFwZXIiLCIxMjAiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJJbmsiLCIxMiIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIkZvbGRlcnMiLCI0OCIsIiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlN0YXBsZXJzIiwiOSIsIiIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9wcmFjdGljZS9jb3VudGlmL2NvdW50aWYtY3JpdGVyaWEtZnJvbS1hLWNlbGwi%2Cs__GkaKkGoPfp9cE7q.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTIF with the limit in a cell | ExcelSavvy"
  "twitter:image": "https://excelsavvy.com/_og/d/c_Page%2Ctitle_COUNTIF%2Bwith%2Bthe%2Blimit%2Bin%2Ba%2Bcell%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGpvaW4gYW4gb3BlcmF0b3IgYW5kIGEgY2VsbCBpbnRvIHRoZSBjcml0ZXJpb24u%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiU3RvY2siLCJSZW9yZGVyIGxldmVsIiwiNDAiXX0seyJuIjoyLCJjZWxscyI6WyJQZW5zIiwiMzUiLCJUbyByZW9yZGVyIiwiIl19LHsibiI6MywiY2VsbHMiOlsiUGFwZXIiLCIxMjAiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJJbmsiLCIxMiIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIkZvbGRlcnMiLCI0OCIsIiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlN0YXBsZXJzIiwiOSIsIiIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9wcmFjdGljZS9jb3VudGlmL2NvdW50aWYtY3JpdGVyaWEtZnJvbS1hLWNlbGwi%2Cs__GkaKkGoPfp9cE7q.png"
---

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

# **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.

E2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Product | Stock |  | Reorder level | 40 | |
| 2 | Pens | 35 |  | To reorder |  | |
| 3 | Paper | 120 |  |  |  | |
| 4 | Ink | 12 |  |  |  | |
| 5 | Folders | 48 |  |  |  | |
| 6 | Staplers | 9 |  |  |  | |
| 7 | Tape | 60 |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock COUNTIF 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:**SUMIF****AVERAGEIF and AVERAGEIFS**

It comes up in this mock test: [**Excel test (SHL format)**](https://excelsavvy.com/tests/shl-excel-test)

**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=/practice/countif/countif-criteria-from-a-cell)

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/practice/countif/countif-criteria-from-a-cell#webpage","@type":"WebPage","description":"Practice COUNTIF in a live spreadsheet: join an operator and a cell into the criterion.","name":"COUNTIF with the limit in a cell","url":"https://excelsavvy.com/practice/countif/countif-criteria-from-a-cell","breadcrumb":{"@id":"https://excelsavvy.com/practice/countif/countif-criteria-from-a-cell#breadcrumb"},"isPartOf":{"@id":"https://excelsavvy.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://excelsavvy.com/practice/countif/countif-criteria-from-a-cell"]}],"primaryImageOfPage":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/practice/countif/countif-criteria-from-a-cell#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://excelsavvy.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://excelsavvy.com/practice","position":2},{"@type":"ListItem","name":"COUNTIF","item":"https://excelsavvy.com/practice/countif","position":3},{"@type":"ListItem","name":"COUNTIF with the limit in a cell","position":4}]},{"@id":"https://excelsavvy.com/practice/countif/countif-criteria-from-a-cell#/schema/learning-resource/1","@type":"LearningResource","description":"Practice COUNTIF in a live spreadsheet: join an operator and a cell into the criterion.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"COUNTIF with the limit in a cell","teaches":"COUNTIF"},{"@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.
