FormulaCraft

How to count cells between two values in Excel and Google Sheets

Excel & Google Sheets
=COUNTIFS(B2:B6,">="&50,B2:B6,"<="&100)

Verified example

Computed by a real spreadsheet engine on the sample data below.

ProductScore
Alpha45
Beta72
Gamma88
Delta55
Epsilon110

=COUNTIFS(B2:B6,">="&50,B2:B6,"<="&100)3

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the cell where you want the count to appear.
  2. 2Type =COUNTIFS( then select the range to evaluate, e.g. B2:B6.
  3. 3Enter the lower-bound criterion as ">="&50 (or a cell reference like ">="&D1).
  4. 4Add a comma, repeat the same range, then enter the upper-bound criterion "<="&100.
  5. 5Close the parenthesis and press Enter.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why does COUNTIFS return 0 when I know values exist in the range?

Check that the numbers are stored as numbers and not text. Select a cell, look at the formula bar — numbers align right by default. Also ensure your criteria strings are correctly quoted.

Can I count between two dates?

Yes. Use the same COUNTIFS pattern but supply dates as criteria, e.g. ">="&DATE(2024,1,1).

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: