How to Combine Two Excel Ranges and Return Unique Values
Question details
The user needs a method to merge data from two separate Excel ranges into a single list that contains only unique values.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating data from multiple columns, worksheets, or sources while ensuring that no duplicate entries exist in the final combined dataset.
- Observed behavior
- The goal state is a single, continuous list displaying only the distinct values extracted from the originally separate ranges.
Decide whether you need a static list (where you manually copy the data) or a dynamic list (using functions that automatically update when your source data changes).
Use the Built-in Remove Duplicates Feature
This is the most straightforward and highly compatible method for users on any version of Excel. It involves manually stacking the data and applying a data cleanup tool.
The Remove Duplicates feature quickly scans a selected range of data and deletes any repeated rows, leaving only unique records behind.
Select the cells in your first data range, right-click, and choose 'Copy' (or press Ctrl+C).
Create a new worksheet to protect your original data. Right-click on cell A1 and choose 'Paste' (or press Ctrl+V).
Copy your second data range. Go back to the new worksheet, click the first empty cell immediately below your pasted data in column A, and paste the second range.
Select the entire newly combined column. Navigate to the 'Data' tab on the ribbon and click the 'Remove Duplicates' button.
In the dialog box that appears, ensure your column is checked and click 'OK'. Excel will notify you how many duplicate values were found and removed.

Use VSTACK and UNIQUE Functions (Dynamic Method)
For newer versions of Excel, you can use dynamic array functions to automatically combine ranges and filter out duplicates in a single step.
Easily Combine Ranges and Remove Duplicates in WPS Office
WPS Spreadsheet provides powerful built-in tools like 'Remove Duplicates' alongside support for advanced dynamic array functions, helping you consolidate and clean your data effortlessly.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet document containing the separate data ranges.
- 2. Combine Ranges Dynamically: Select an empty cell and input `=UNIQUE(VSTACK(A1:A10, B1:B10))` to instantly merge and filter your data into a dynamic array.
- 3. Use Remove Duplicates Manually: Alternatively, copy your ranges into a single column, navigate to the 'Data' tab, and click the 'Remove Duplicates' icon to permanently clean your list.

Frequently Asked Questions
Why is the VSTACK function returning a #NAME? error?
If your current version of the software does not support modern dynamic array functions like VSTACK or UNIQUE, it will not recognize the command and will return a #NAME? error. In this scenario, you should use the manual 'Remove Duplicates' method on the Data tab instead.
Does the Remove Duplicates tool delete my original data permanently?
Yes, if applied directly to your source dataset, it permanently deletes the rows containing duplicate values. It is highly recommended to copy and paste your ranges into a new worksheet before using this feature.
Can I combine more than two ranges using these methods?
Yes. You can stack as many ranges as you need. Manually, you simply paste them consecutively into a single column. With formulas, you add them as additional arguments within the VSTACK function, such as =UNIQUE(VSTACK(Range1, Range2, Range3)).
Is the UNIQUE function case-sensitive when filtering duplicates?
No, the UNIQUE function in spreadsheet applications is typically not case-sensitive by default. Text like 'Apple' and 'apple' will be treated as the exact same value, and only the first instance encountered will be returned in the list.




