KeepSorted

Google Sheets unique values formula maker

Type the cells to read and pick what you need: the list of unique values, the same list sorted A to Z, how many different values there are, each value with its count, only the values that repeat, or only the values that appear once. You get one formula for an empty cell; it updates by itself when the data changes. It is built in your browser and nothing you type here is sent anywhere. Each formula was run in a real Google Sheet on 2 November 2026, including the case, blank-cell and several-column cases below.

Your formula
=SORT(UNIQUE(FILTER(A2:A, A2:A<>"")))

How to use it

Put the formula in an empty cell, ideally on a new tab. It fills the cells below (and to the right for several columns), so those must be empty: if something is in the way, Sheets shows #REF! with "Array result was not expanded". Do not put it inside the cells it reads. Type the tab name with the range (Data!A2:A) when the formula lives on another tab; names with spaces are quoted for you.

What each formula does

The catches (found by testing in a real Sheet)

When the unique list should also stay sorted in the original

These formulas make a separate list. To keep the rows of the original table sorted by themselves, use the sort formula generator for a sorted copy or the auto sort script generator for the table itself.

No code: KeepSorted

The add-on sorts the original table in place without code: no second copy, so formatting, checkboxes and notes move with their rows and people keep editing the same table. Select the range, pick the sort columns, Save. Free: one area per tab, up to 2 sort columns, no trial clock. Pro ($5/month or $39/year): up to 5 sort columns, custom orders like High > Medium > Low, ticked checkbox rows to the bottom, stacked tables sorted separately, and sorting after form responses, other editors' changes and an hourly check.

KeepSorted is built and in testing. It is not in the Google Workspace Marketplace yet. Leave your email and we send one message when you can install it.

You're on the list. We'll email you when KeepSorted is ready.

The generators and the formulas stay free either way.

More KeepSorted tools and guides

Sources