COUNTA function
See why empty text is counted as a value.
Statistical
Where can you use it?
Analytics, quality and research teams. Use this group to examine distributions, variability or relationships in measurements, sales or service durations.
Scenario in the workbook
Count occupied cells, including text notes.
A worked example from the workbook
| Row | A | B | C |
|---|---|---|---|
| 6 | Period 1 | Period 2 | Period 3 |
| 7 | 2 | Pending | 3 |
| 8 | — | 0 | 9 |
| 9 | — | Open | — |
Record 1
=COUNTA(A7:C7)Expected result3
See the inputs and instructions for all 3 examplesCopyable formulas
English Excel · en-US
=COUNTA("L01","L02","")Turkish Excel · tr-TR
=BAĞ_DEĞ_DOLU_SAY("L01";"L02";"")Example and expected result
Empty text is a value. A truly empty cell is excluded.
Expected result 3.
Worked examples
Count occupied cells, including text notes.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B | C |
|---|---|---|---|
| 6 | Period 1 | Period 2 | Period 3 |
| 7 | 2 | Pending | 3 |
| 8 | — | 0 | 9 |
| 9 | — | Open | — |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =COUNTA(A7:C7) |
3 |
| Record 2 | =COUNTA(A8:C8) |
2 |
| Record 3 | =COUNTA(A9:C9) |
1 |