Excel 365 + Google Sheets · COUNTA + UNIQUE
Count unique values
UNIQUE removes repeats and COUNTA counts what's left.
The formula
=COUNTA(UNIQUE(A2:A7))What each part means
UNIQUE(A2:A7)Each client onceCOUNTA(...)How many
Example
| A | B | |
|---|---|---|
| 1 | Client | Unique clients |
| 2 | Acme | |
| 3 | Bolt | |
| 4 | Acme | |
| 5 | Cora | |
| 6 | Bolt | |
| 7 | Dyno |
| A | B | |
|---|---|---|
| 1 | Client | Unique clients |
| 2 | Acme | 4 |
| 3 | Bolt | |
| 4 | Acme | |
| 5 | Cora | |
| 6 | Bolt | |
| 7 | Dyno |
Step by step
- Click cell B2.
- Type the formula:
=COUNTA(UNIQUE(A2:A7)) - Press Enter.
Where it works
- Excel 365 and Excel 2021 or newer
- Google Sheets
- Excel for the web (free)
The same formula in other languages
- English COUNTA + UNIQUE
- Español CONTARA + UNICOS
- Português CONT.VALORES + ÚNICO