14

I'm generating a list based on using the UNIQUE function.

How can I get the output to be alphabetized automatically?

1

3 Answers 3

19

Use Sort and Unique together.

=sort(unique(A:A))

Here are the descriptions of the filter functions for Google spreadsheets.

1
  • As was already noted by clement_thirode, using A:A will return also blank cells. It's better to use a reference just for the required cells, but in some cases the formula by clemment_thirode could be better. Sep 8, 2015 at 18:05
4

I add a filter function to keep only cells with data.

=sort(filter(unique(A:A);unique(A:A)<>""))

Maybe it could help.

1
0

How about this for more readability.

=sort(unique(filter(A:A, not(isblank(A:A)))))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.