Find the Unique Values in a Column
September 14, 2022 - by Bill Jelen
Problem: I have a large database. Before I can produce a report for each customer, I need to identify the complete list of unique customers.
Strategy: Below, learn how you could use the older Advanced Filter to solve the problem. Follow these steps:
1. Copy the Customer heading from D1 to a blank cell.
2. Select a single cell in your data range and then select Data, Advanced. The Advanced Filter dialog will appear, offering many confusing options.
-
3. Choose the Unique Records Only check box. Change the Action section to Copy to Another Location. Selecting this action enables the Copy To range. Place the cell pointer in the Copy To text box and touch the out-of-the-way copy of the Customer heading.
4. Click OK. Excel will find the unique customer numbers and copy them to the range you specified.
Gotcha: The list is not sorted. It appears in the same order that the customers appeared in the original data set.
Gotcha: Any subsequent use of the Advanced Filter command during this Excel session will remember the list range you specified in the Advanced Filter dialog box.
This article is an excerpt from Power Excel With MrExcel
Title photo by Pablo Hermoso on Unsplash