Table of Contents
Excel is a powerful tool that can be used to find unique values in non-adjacent columns. This feature is particularly useful in situations where data is spread out across multiple columns and you need to quickly identify and extract the unique values. By using the “Advanced Filter” function in Excel, you can easily specify the non-adjacent columns and filter out the duplicate values, leaving only the unique values visible. This allows for efficient data analysis and organization, saving time and effort for the user. With its user-friendly interface and advanced functions, Excel provides a convenient solution for finding unique values in non-adjacent columns.
Excel: Find Unique Values in Non-Adjacent Columns
You can use the following formula to find unique values in non-adjacent columns in Excel:
=SORT(UNIQUE(FILTER(A1:C11,{1,0,1})))
This particular formula returns the unique combinations of values in the range A1:C11 for columns A and C only.
Note that the values in the curly brackets indicate which columns to include when finding unique values.
The number 1 specifies to include a column while 0 specifies to exclude it.
For example:
- The first 1 indicates that column A should be included.
- The 0 indicates that column B should be excluded.
- The second 1 indicates that column C should be included.
The following example shows how to use this formula in practice.
Example: Find Unique Values in Non-Adjacent Columns in Excel
Suppose we have the following dataset that contains information about basketball players on various teams:

Suppose we would like to find the unique combinations of teams and positions.
Since the team and position columns are not directly next to each other, we can’t simply use the UNIQUE function.
Instead, we must use the following formula:
=SORT(UNIQUE(FILTER(A1:C11,{1,0,1})))We can type this formula into cell D2 and then press Enter:

Note that in this example we only used two non-adjacent columns but you can include as many non-adjacent columns as you’d like by using more 1‘s and 0‘s in the formula.
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I use Excel to find unique values in non-adjacent columns?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-find-unique-values-in-non-adjacent-columns/
stats writer. "How can I use Excel to find unique values in non-adjacent columns?." PSYCHOLOGICAL SCALES, 23 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-find-unique-values-in-non-adjacent-columns/.
stats writer. "How can I use Excel to find unique values in non-adjacent columns?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-find-unique-values-in-non-adjacent-columns/.
stats writer (2024) 'How can I use Excel to find unique values in non-adjacent columns?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-find-unique-values-in-non-adjacent-columns/.
[1] stats writer, "How can I use Excel to find unique values in non-adjacent columns?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I use Excel to find unique values in non-adjacent columns?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
