Function Problems

WPS Spreadsheet: Create a Unique Sorted List from Two PivotTable Columns

Huma Ashraf ChHuma Ashraf Ch Nov 12, 2026 868 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Select the output cell

Open the worksheet in WPS Spreadsheet and select the first blank cell where the vertical list should begin, such as L2.

2
Enter the dynamic formula

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.

3
Review the spilled list

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.

4
Refresh the source PivotTables

When the PivotTables change, use the PivotTable Refresh command if needed. WPS Spreadsheet will recalculate the formula and update the sorted list automatically.

Dynamic list created: The result remains connected to columns A and J, so new PivotTable entries are included after the source data recalculates.

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. 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. 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. 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. 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.
Automatically combines names from columns A and J into one vertical listRemoves duplicate names, PivotTable labels, blank cells, and total entriesUpdates the output when the source PivotTables recalculateSupports Microsoft Excel .xlsx and .xls workbook formatsProvides a familiar, lightweight spreadsheet workflow for formula-based cleanup
microsoft office alternative - wps office

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.