Sample Data
This data shows numbers and text values in columns A and B, with some empty cells.
| Cell | Value |
|---|---|
| A1 | 10 |
| A2 | 20 |
| A3 | Text |
| A4 | |
| A5 | 30 |
| B1 | Apple |
| B2 | Banana |
| B3 | |
| B4 | 40 |
| B5 | 50 |
This data shows numbers and text values in columns A and B, with some empty cells.
| Cell | Value |
|---|---|
| A1 | 10 |
| A2 | 20 |
| A3 | Text |
| A4 | |
| A5 | 30 |
| B1 | Apple |
| B2 | Banana |
| B3 | |
| B4 | 40 |
| B5 | 50 |
=COUNT(A1:A5)A B 1 | 10 | Apple 2 | 20 | Banana 3 |Text| 4 | | 40 5 | 30 | 50 Formula references A1 to A5 cells.
A B C 1 | 10 | Apple | 2 | 20 | Banana| 3 |Text| | 4 | | 40 | 5 | 30 | 50 | 6 | | | 3 Cell C6 shows the result of COUNT(A1:A5) which is 3.