Ghost Sheet

Count unique values in a column

How many different customers ordered this month?

This is the task for this topic. It is part of the plan; the level check before it is free.
F2Type a formula for F2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDEF
1OrderCustomerValue
2SO-5101Birch Legal625Different customers
3SO-5102Juniper Bakery1,200
4SO-5103Pinegate School465
5SO-5104Juniper Bakery1,535
6SO-5105Kite Studio135
7SO-5106Larch & Co1,200
8SO-5107Rowan Cafe270
9SO-5108Pinegate School670
10SO-5109Rowan Cafe1,755
11SO-5110Quill Books60
12SO-5111Moss Dental565
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
UNIQUE lists each value once and COUNTA counts that list. Clean the names first with TRIM and drop empty rows with FILTER, or near-duplicates such as a name with a trailing space are counted twice. UNIQUE and FILTER need Excel 365 or 2021.
The shape of the formula
=COUNTA(UNIQUE(FILTER(TRIM(names), names<>"")))
How to remember it
Count customers, not orders: collapse the list first, then count.
The usual mistake
Counting UNIQUE on raw text. “Rowan Cafe” and “Rowan Cafe ” are two customers to Excel.

Keep practicing

Updated