How to Get Unique Sorted Values in Google Sheets?
Struggling with duplicates in your data? This formula will help you extract a clean, sorted list of unique values effortlessly.
Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.
The formula
"Get a sorted list of unique values from a column in Google Sheets without duplicates"
=SORT(UNIQUE(A:A))
This formula returns a sorted list of unique values from a specified column.
Step-by-step breakdown
- UNIQUE(A:A) extracts all unique values from column A.
- SORT(...) sorts the unique values in ascending order.
- The formula can be applied to any column by changing A:A to the desired range.
- Ensure that the range contains no blank cells for accurate results.
- The result will automatically update as the data in the specified range changes.
Edge cases & warnings
- The column contains only duplicate values, resulting in a single unique value.
- The column is empty, leading to an empty output.
- The column contains blank cells, which may affect the sorting order.
- The column includes mixed data types (numbers and text), which can lead to unexpected sorting.
- The formula is applied to a large dataset, which may slow down performance.
Examples
"Column A: {1, 2, 2, 3, 4, 4, 5}"
{1, 2, 3, 4, 5}
"Column A: {'apple', 'banana', 'apple', 'orange'}"
{'apple', 'banana', 'orange'}
Frequently asked questions
Can I use this formula on multiple columns?
No, this formula only works on a single column at a time.
What if my data is in a different column?
Simply change the range in the formula from A:A to the desired column.
Will this formula update automatically?
Yes, the output will update automatically as you modify the data in the specified column.
Can't find what you need?
Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.