Formulyo

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

Example

Before
AB
1ClientUnique clients
2Acme
3Bolt
4Acme
5Cora
6Bolt
7Dyno
After
AB
1ClientUnique clients
2Acme4
3Bolt
4Acme
5Cora
6Bolt
7Dyno

Step by step

  1. Click cell B2.
  2. Type the formula: =COUNTA(UNIQUE(A2:A7))
  3. Press Enter.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning