Function Problems

How to Compare Multiple Columns and Add Unique Values in WPS Office Spreadsheets

Emma BrownEmma Brown Nov 13, 2026 869 views

Question details

The user needs to compare values across multiple worksheet columns, identify the values that are unique to the non-target columns, append those unique values below the first column, and then highlight the appended records for easy review.

How to Compare Multiple Columns and Add Unique Values in WPS Office Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A worksheet contains data in several columns, and the user wants to consolidate unique values from the other columns into the first column without checking each row manually.
Observed behavior
The first column currently contains only its original values. Overlapping values in the other columns are ignored, and appended unique values need a visible highlight to distinguish them from the original list.
Before you start

Open the workbook in WPS Office Spreadsheets and identify the first column that will receive the unique values. If you use a dynamic array formula, make sure the area below the target output cell is free of existing data.

Solution 1Recommended

Create a Combined Unique List with a Dynamic Array Formula

Use this method when you want a separate, automatically updated list that contains the original first-column values plus unique values from the other columns.

This method keeps the original columns intact and places the combined result in a helper column. It works best when you do not need to physically modify the first column.

1
Select the output cell

Click an empty cell where you want the combined list to start, for example F2.

2
Enter the unique list formula

In the formula bar, type =UNIQUE(VSTACK(A2:A100,TOCOL(B2:D100,1))) and press Enter. Replace A2:A100 with the first-column range and B2:D100 with the other columns to compare.

3
Highlight appended values

Select the formula spill area, click Home > Conditional Formatting > New Rule, choose Use a formula to determine which cells to format, and enter =AND(F2<>"",COUNTIF($A$2:$A$100,F2)=0). Set a fill color and click OK.

Create a Combined Unique List with a Dynamic Array Formula
Formula availability: If VSTACK or TOCOL is not available in your version of WPS Office Spreadsheets, update to a version that supports dynamic array functions or use the macro method.
WPS Office Spreadsheets

Use WPS Office Spreadsheets to Compare Columns and Add Unique Values

With WPS Office Spreadsheets, you can use dynamic array formulas and conditional formatting to compare columns, extract unique values, add them below the target column, and highlight the new records without switching to a paid Office suite.

  1. 1. Open your workbook: Download and install WPS Office from the official website, then open your workbook in WPS Office Spreadsheets.
  2. 2. Create the unique list: Select an empty output cell and enter a dynamic array formula such as =UNIQUE(VSTACK(A2:A100,TOCOL(B2:D100,1))).
  3. 3. Highlight new records: Apply Home > Conditional Formatting to the output range with a rule that highlights values not found in the original first-column range.
  4. 4. Save your file: Review the appended records and save the file as an Excel-compatible XLSX workbook.
Built-in dynamic array functions and conditional formatting tools make unique-value comparison quick.Supports Excel-compatible XLSX files so you can open, edit, and save your workbooks without conversion.Free and lightweight spreadsheet tools with a familiar Office-style interface.Keeps your original data intact while generating an automatically updated unique list.
microsoft office alternative - wps office

Frequently Asked Questions

Does the formula method physically add the unique values below column A?

No, the formula method creates a separate combined list. If you need the original first column to be physically expanded, use the macro method instead.

How do I highlight only the newly added unique values?

Apply conditional formatting to the output range using a formula like =AND(F2<>"",COUNTIF($A$2:$A$100,F2)=0). This highlights values that do not already exist in the original first-column range.

What if my comparison columns contain blank cells?

Use TOCOL(B2:D100,1) inside the formula. The second argument 1 instructs the function to ignore empty cells before unique values are combined.

Why am I seeing a #NAME? error after entering the formula?

A #NAME? error usually means your version of WPS Office Spreadsheets does not support VSTACK, TOCOL, or UNIQUE. Update WPS Office or use the macro method.