Function Problems

How to Use UNIQUE and FILTER with VSTACK in WPS Office Spreadsheets

Olivia MillerOlivia Miller Nov 13, 2026 869 views

Question details

The user wants to combine data from multiple sheets with VSTACK and then apply UNIQUE and FILTER to remove blanks and duplicates, and to understand why a nested formula may return an error.

How to Use UNIQUE and FILTER with VSTACK in WPS Office Spreadsheets
Product
WPS Office Spreadsheets and Microsoft Excel 365
Device & OS
not provided
Scenario
The user is stacking name lists or similar data from multiple worksheets and needs one clean, unique result list without blanks or duplicates.
Observed behavior
The nested UNIQUE/FILTER/VSTACK formula returns an error such as #NAME?, #VALUE!, or #SPILL! instead of a clean unique list.
Before you start

Before entering the formula, confirm that your spreadsheet application supports dynamic array functions—UNIQUE, FILTER, and VSTACK—and that every range used inside VSTACK has the same number of columns.

Solution 1Recommended

Combine Multiple Ranges with VSTACK, FILTER, and UNIQUE in One Formula

Use this nested formula when you need to stack lists from multiple sheets, remove blank cells, and return unique values in one step.

VSTACK returns one array from the stated ranges, FILTER can evaluate that same array to exclude empty strings, and UNIQUE then removes duplicates from the filtered result.

1
Select the output cell

Click the blank cell where you want the unique result list to start in your WPS Office Spreadsheets or Excel 365 worksheet.

2
Enter the nested formula

Type =UNIQUE(FILTER(VSTACK(Sheet1!A2:A100,Sheet2!A2:A100,Sheet3!A2:A100),VSTACK(Sheet1!A2:A100,Sheet2!A2:A100,Sheet3!A2:A100)<>"")) and press Enter.

3
Confirm the spill range

If dynamic arrays are supported, the results spill into the cells below and update automatically when the source ranges change.

Combine Multiple Ranges with VSTACK, FILTER, and UNIQUE in One Formula
Clean unique list returned: This returns one column of unique, non-blank values from all stacked ranges without helper cells.
WPS Spreadsheets dynamic array solution

Use WPS Office Spreadsheets to Create a Unique, Blank-Free List from Multiple Sheets

WPS Office Spreadsheets supports dynamic array functions, so you can enter the same VSTACK, FILTER, and UNIQUE formula to stack ranges, remove blanks, and return unique values without helper columns.

  1. 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office, click Menu > Open, and select the .xlsx workbook that contains the source sheets.
  2. 2. Select the result cell: Click the blank cell where you want the cleaned unique list to start, such as D2 in the summary sheet.
  3. 3. Enter the VSTACK formula: Type =VSTACK(Sheet1!A2:A100,Sheet2!A2:A100,Sheet3!A2:A100) and press Enter to check that the stacked array spills correctly.
  4. 4. Wrap with FILTER and UNIQUE: Change the formula to =UNIQUE(FILTER(VSTACK(Sheet1!A2:A100,Sheet2!A2:A100,Sheet3!A2:A100),VSTACK(Sheet1!A2:A100,Sheet2!A2:A100,Sheet3!A2:A100)<>"")) and press Enter.
Native dynamic array support for VSTACK, FILTER, and UNIQUE in WPS Spreadsheets.Full compatibility with Microsoft Excel .xlsx formulas and workbooks.Free and lightweight, with a familiar ribbon interface for easy migration.Live spill results that update automatically when source data changes.
microsoft office alternative - wps office

Frequently Asked Questions

Can UNIQUE and FILTER read arrays returned by VSTACK?

Yes. In spreadsheet apps that support dynamic arrays, VSTACK returns an array, and UNIQUE and FILTER can accept that array as input in one nested formula.

Why does my formula return #NAME? in Excel?

This usually means your Excel version does not support VSTACK, FILTER, or UNIQUE. Use Microsoft 365, or open the file in WPS Office Spreadsheets with dynamic array support.

How can I remove blank cells from a VSTACK result?

Wrap VSTACK in FILTER with a condition that checks the same VSTACK array, such as FILTER(VSTACK(...),VSTACK(...)<>"").

What should I check if I get a #VALUE! error?

Verify that all VSTACK ranges have the same number of columns and compatible data types, and confirm that the formula references match the actual source ranges exactly.

Does WPS Office support the VSTACK function?

Recent WPS Office Spreadsheets versions support dynamic array functions, including VSTACK, FILTER, and UNIQUE. Open your .xlsx file and enter the same formula.