---
title: "COUNTIF with the limit in a cell | PracticeExcel"
description: "Practice COUNTIF in a live spreadsheet: join an operator and a cell into the criterion."
canonical_url: "https://practiceexcelonline.com/practice/countif/countif-criteria-from-a-cell"
locale: en
meta:
  "og:description": "Practice COUNTIF in a live spreadsheet: join an operator and a cell into the criterion."
  "og:image": "https://practiceexcelonline.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 | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.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://practiceexcelonline.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://practiceexcelonline.com/tests/shl-excel-test)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/countif/countif-criteria-from-a-cell)

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/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://practiceexcelonline.com/practice/countif/countif-criteria-from-a-cell","breadcrumb":{"@id":"https://practiceexcelonline.com/practice/countif/countif-criteria-from-a-cell#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/countif/countif-criteria-from-a-cell"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/countif/countif-criteria-from-a-cell#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":"COUNTIF","item":"https://practiceexcelonline.com/practice/countif","position":3},{"@type":"ListItem","name":"COUNTIF with the limit in a cell","position":4}]},{"@id":"https://practiceexcelonline.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://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.
