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

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

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

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

Last reviewed: