WPS Spreadsheet: Create a Unique Sorted List from Two PivotTable Columns
Question details
Create one vertical list from names in columns A and J while removing duplicates, PivotTable labels, and total rows.
- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Two PivotTables contain names in columns A and J, and the user needs a combined list that updates as the PivotTables change.
- Observed behavior
- The source columns contain duplicate names and unwanted entries such as Row Labels and Total, so the desired clean list is not available automatically.
Confirm that the names are stored in columns A and J and that your WPS Spreadsheet version supports dynamic-array functions such as LET, VSTACK, TOCOL, FILTER, UNIQUE, and SORT. Keep the PivotTables in those columns so the formula can recalculate when their contents change.
Use a dynamic formula to combine, clean, and sort both PivotTable columns
Use this solution when your WPS Spreadsheet version supports modern dynamic-array functions and the list must update automatically.
The formula stacks both columns into one array, removes blank cells and entries containing PivotTable labels or totals, removes duplicate names, and sorts the final result alphabetically.
Open the worksheet in WPS Spreadsheet and select the first blank cell where the vertical list should begin, such as L2.
In the selected cell, enter =LET(all,VSTACK(TOCOL(A:A,1),TOCOL(J:J,1)),clean,FILTER(all,(all<>"")*ISERROR(SEARCH("Label",all))*ISERROR(SEARCH("Total",all))),SORT(UNIQUE(clean))) and press Enter.
Allow the formula result to spill downward from the output cell. The list will contain unique names from columns A and J, excluding cells that contain Label or Total.
When the PivotTables change, use the PivotTable Refresh command if needed. WPS Spreadsheet will recalculate the formula and update the sorted list automatically.
Build a dynamic unique PivotTable list in WPS Spreadsheet
WPS Spreadsheet can combine two PivotTable columns, filter out labels and totals, remove duplicates, and sort the result with a single dynamic-array formula. Its familiar spreadsheet interface also makes it easy to refresh the source PivotTables and review the spilled list.
- 1. Open the workbook: Launch WPS Office, open the workbook containing the two PivotTables, and verify that the source values are in columns A and J.
- 2. Choose an output cell: In WPS Spreadsheet, click a blank cell outside the PivotTables, such as L2, where the combined list can spill downward.
- 3. Insert the formula: Paste =LET(all,VSTACK(TOCOL(A:A,1),TOCOL(J:J,1)),clean,FILTER(all,(all<>"")*ISERROR(SEARCH("Label",all))*ISERROR(SEARCH("Total",all))),SORT(UNIQUE(clean))) into the formula bar and press Enter.
- 4. Refresh and verify: Refresh the PivotTables when their source data changes, then check that the output list remains unique, excludes labels and totals, and stays sorted.

Frequently Asked Questions
Can this formula combine names from columns other than A and J?
Yes. Replace A:A and J:J in the VSTACK portion with the required source columns, such as B:B and K:K, while keeping the rest of the formula unchanged.
How does the formula remove Row Labels and Total entries?
FILTER keeps only values that do not contain Label and do not contain Total. This removes entries such as Row Labels, Column Labels, Grand Total, and other text containing those terms.
Why does the result appear below the formula cell automatically?
The formula returns a dynamic array. WPS Spreadsheet spills the results into the empty cells below the formula cell, so those cells must remain clear.
What should I do if WPS shows a #NAME? error?
The installed WPS Spreadsheet version may not support one or more dynamic-array functions. Update WPS Office to the latest version and confirm support for LET, VSTACK, TOCOL, FILTER, UNIQUE, and SORT.
Will the list update when a PivotTable changes?
The formula recalculates when the source ranges change. If the PivotTable does not show new source data immediately, refresh the PivotTable first, then allow the worksheet to recalculate.




