Add and count

Count numbers within a range

=COUNTIFS(B2:B5,">=20",B2:B5,"<=30")

How it works in Excel

The idea in general

Each number has to clear the floor and stay under the ceiling.

What I assumed

Check the result on your own data before relying on it.

Related

Ask another question