Function Problems

How to Combine Two Excel Ranges and Return Unique Values

Natalie TaylorNatalie Taylor Nov 2, 2026 871 views

Question details

The user needs a method to merge data from two separate Excel ranges into a single list that contains only unique values.

How to Combine Two Excel Ranges and Extract 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.
Before you start

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).

Solution 1Recommended

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.

1
Copy the first range

Select the cells in your first data range, right-click, and choose 'Copy' (or press Ctrl+C).

2
Paste into a new worksheet

Create a new worksheet to protect your original data. Right-click on cell A1 and choose 'Paste' (or press Ctrl+V).

3
Append the second range

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.

4
Apply Remove Duplicates

Select the entire newly combined column. Navigate to the 'Data' tab on the ribbon and click the 'Remove Duplicates' button.

5
Confirm removal

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 the Built-in Remove Duplicates Feature
Safe Data Handling: Pasting your ranges into a completely new worksheet guarantees that your original datasets remain untouched and safe from accidental deletion.
Solve it with WPS Spreadsheet

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. 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet document containing the separate data ranges.
  2. 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. 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.
100% compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Supports advanced dynamic array formulas for complex data tasksIntuitive user interface for quick manual data consolidationFree and lightweight alternative for seamless everyday office work
microsoft office alternative - wps office

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.