---
title: "COUNTIF with the limit in a cell in Google Sheets | PracticeExcel"
description: "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."
canonical_url: "https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell"
locale: en
meta:
  "og:description": "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."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_COUNTIF%2Bwith%2Bthe%2Blimit%2Bin%2Ba%2Bcell%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRTIsIGNvdW50IHRoZSBwcm9kdWN0cyBpbiBCMjpCNyB3aXRoIHN0b2NrIGJlbG93IHRoZSByZW9yZGVyIGxldmVsIGluIEUxLiBKb2luICI8IiBhbmQgRTEgd2l0aCAmLCBzbyB0aGUgY291bnQgZm9sbG93cyB3aGVuIEUxIGNoYW5nZXMu%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiU3RvY2siLCJSZW9yZGVyIGxldmVsIiwiNDAiXX0seyJuIjoyLCJjZWxscyI6WyJQZW5zIiwiMzUiLCJUbyByZW9yZGVyIiwiIl19LHsibiI6MywiY2VsbHMiOlsiUGFwZXIiLCIxMjAiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJJbmsiLCIxMiIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIkZvbGRlcnMiLCI0OCIsIiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlN0YXBsZXJzIiwiOSIsIiIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvY291bnRpZi9jb3VudGlmLWNyaXRlcmlhLWZyb20tYS1jZWxsIg%2Cs_TFxO9VSQ6u5Y_jm7.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "COUNTIF with the limit in a cell in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_COUNTIF%2Bwith%2Bthe%2Blimit%2Bin%2Ba%2Bcell%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRTIsIGNvdW50IHRoZSBwcm9kdWN0cyBpbiBCMjpCNyB3aXRoIHN0b2NrIGJlbG93IHRoZSByZW9yZGVyIGxldmVsIGluIEUxLiBKb2luICI8IiBhbmQgRTEgd2l0aCAmLCBzbyB0aGUgY291bnQgZm9sbG93cyB3aGVuIEUxIGNoYW5nZXMu%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiU3RvY2siLCJSZW9yZGVyIGxldmVsIiwiNDAiXX0seyJuIjoyLCJjZWxscyI6WyJQZW5zIiwiMzUiLCJUbyByZW9yZGVyIiwiIl19LHsibiI6MywiY2VsbHMiOlsiUGFwZXIiLCIxMjAiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJJbmsiLCIxMiIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIkZvbGRlcnMiLCI0OCIsIiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlN0YXBsZXJzIiwiOSIsIiIsIiJdfV0sInRhcmdldCI6WzEsM119fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvY291bnRpZi9jb3VudGlmLWNyaXRlcmlhLWZyb20tYS1jZWxsIg%2Cs_TFxO9VSQ6u5Y_jm7.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****SUMIFS**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/sheets/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/sheets/practice/countif/countif-criteria-from-a-cell#webpage","@type":"WebPage","description":"In E2, count the products in B2:B7 with stock below the reorder level in E1. Join \"\u003C\" and E1 with &, so the count follows when E1 changes.","name":"COUNTIF with the limit in a cell in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell#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":"COUNTIF","item":"https://practiceexcelonline.com/sheets/practice/countif","position":3},{"@type":"ListItem","name":"COUNTIF with the limit in a cell in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/countif/countif-criteria-from-a-cell#/schema/learning-resource/1","@type":"LearningResource","description":"In E2, count the products in B2:B7 with stock below the reorder level in E1. Join \"\u003C\" and E1 with &, so the count follows when E1 changes.","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.
