The basics

Count cells that are not empty

=COUNTA(A2:A5)

How it works in Excel

The idea in general

It answers: "How many of these spaces have been filled in?"

What I assumed

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

Related

Ask another question