How to List Unique Values Without Blanks in Google Sheets

Create a distinct list of customer names or categories, skip empty cells, and keep every row in the original transaction log.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
Combine UNIQUE with FILTER in an empty column on a separate tab. FILTER excludes empty cells and UNIQUE returns one copy of each remaining value in its original order of appearance. The source rows stay available for reporting.
Make a reusable list from order records
- On a tab named Orders, put Customer in B1. Underneath, enter Alba, leave one cell blank, then enter Bay, Alba, and Cedar.
- On a new tab put Customer list in A1. Leave space underneath so the result can grow. In A2 enter
=IFNA(UNIQUE(FILTER(Orders!B2:B,Orders!B2:B<>"")),""). - The result should show Alba, Bay, and Cedar once each. Add another Bay to the source and verify the summary stays three rows long. Add a new customer and check that a fourth row appears.
- For alphabetical order, wrap the UNIQUE expression in SORT. Use
=IFNA(SORT(UNIQUE(FILTER(Orders!B2:B,Orders!B2:B<>"")),1,TRUE),"").
Why two names can look identical
A nonbreaking space from a website or a trailing space after Bay can create a second item that looks the same. Compare the character counts with LEN and clean invisible spaces in a helper column before counting customers. A cell containing only spaces also passes the nonempty test.
Two customers might share a name. For a headcount or lookup, use a stable customer ID. Keep repeated purchases in the transaction log. To remove records based on a combination of two fields, follow the two-column duplicate cleanup guide. To fetch a value for one ID, use an exact-match lookup.
Comments
Comments are reviewed before they become public.
Sign in with Google to leave a comment.
Sign in with GoogleNo approved comments yet. Be the first to start the discussion.