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