Sample Data
Sample data with numbers, text, and empty cells in columns A and B.
| Cell | Value |
|---|---|
| A1 | 10 |
| A2 | 15 |
| A3 | Hello |
| A4 | 20 |
| A5 | |
| B1 | Apple |
| B2 | 25 |
| B3 | 30 |
| B4 | |
| B5 | Banana |
Sample data with numbers, text, and empty cells in columns A and B.
| Cell | Value |
|---|---|
| A1 | 10 |
| A2 | 15 |
| A3 | Hello |
| A4 | 20 |
| A5 | |
| B1 | Apple |
| B2 | 25 |
| B3 | 30 |
| B4 | |
| B5 | Banana |
=COUNT(A1:A5)A B 1 | 10 | Apple 2 | 15 | 25 3 |Hello| 30 4 | 20 | 5 | | Banana COUNT references A1 to A5 (highlighted in column A).
A B C 1 | 10 | Apple | 3 2 | 15 | 25 | 3 |Hello| 30 | 4 | 20 | | 5 | | Banana | Cell C1 shows the result of =COUNT(A1:A5) which is 3.