Function Problems

Find Unique Values in Filtered Excel Data

Olivia MillerOlivia Miller Nov 18, 2026 870 views

Question details

Identify distinct values among duplicates in a filtered Excel list.

Find Unique Values in Filtered Excel Data
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user filters a column containing duplicate numbers and wants a list of the distinct values that remain visible.
Observed behavior
The desired result is one entry for each distinct visible value, regardless of how many times it appears.
Before you start

Apply the desired filter and identify the column containing the values to compare. For the formula method, confirm that your Excel version supports the UNIQUE and FILTER functions.

Solution 1Recommended

Use UNIQUE and FILTER to list visible values

Use this dynamic formula in Microsoft 365 to update the distinct list when the filter changes.

1
Filter the source list

Select the data range, choose Data > Filter, and apply the conditions that determine which rows remain visible.

2
Enter the formula

Click an empty cell outside the source range and enter =UNIQUE(FILTER(A2:A100,SUBTOTAL(103,OFFSET(A2,ROW(A2:A100)-ROW(A2),0,1)),"No visible values")). Replace A2:A100 and A2 with the corresponding range and first cell in your list.

3
Review the results

Press Enter and leave enough empty cells below the formula for the results to spill. Change the Data > Filter selection to update the list.

Use UNIQUE and FILTER to list visible values
Blank and hidden cells: The formula excludes blank cells and rows hidden by a filter or manually. If no nonblank values are visible, it returns “No visible values.”
Find distinct filtered values

Create a distinct list in WPS Spreadsheets

Filter your data in WPS Spreadsheets, copy the visible values to a separate range, and remove duplicates from the copy.

  1. 1. Open the workbook: Open your Excel file in WPS Spreadsheets and select the column you want to examine.
  2. 2. Apply a filter: Choose Data > Filter and use the column’s filter menu to show the rows you need.
  3. 3. Copy visible cells: Select the filtered values and use Go To Special > Visible cells only, then copy and paste them into an empty range or another sheet.
  4. 4. Remove duplicates: Select the pasted values, choose Data > Remove Duplicates, and confirm the column to produce a distinct list.
Create a distinct list from filtered valuesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet filtering and duplicate-removal toolsGet a free, easy-to-use office suite
QA img-9

Frequently Asked Questions

Does UNIQUE return values that appear only once?

By default, UNIQUE returns each distinct value once, even if that value appears multiple times in the source. Its optional exactly_once argument can instead return only values that occur once.

Will the formula update when I change the filter?

Yes. The UNIQUE and FILTER formula uses SUBTOTAL to test row visibility, so its results update when you change the filter.

Why does the formula show a spill error?

Excel needs empty cells below the formula to display the results. Clear any cells blocking the spill range, or move the formula to an empty area.

Can I find unique combinations across multiple columns?

Yes. Copy the visible rows with their headers to a separate range, then use Data > Advanced and select Unique records only. Excel compares the selected columns as complete records.