Function Problems

Fix TEXTSPLIT with UNIQUE in WPS Spreadsheets to Extract All Unique Values

Steven ParkerSteven Parker Nov 13, 2026 868 views

Question details

The user wants to extract every unique value from delimiter-separated text stored across multiple cells by combining TEXTSPLIT with UNIQUE, without losing values after the first separator.

Fix TEXTSPLIT with UNIQUE in WPS Spreadsheets to Extract All Unique Values
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
The user has a range of cells containing delimiter-separated values and needs a formula to return a sorted list of all unique values.
Observed behavior
Applying TEXTSPLIT directly to a multi-cell range can process entries unexpectedly and omit text after the first separator unless the range is first combined into one string.
Before you start

Confirm that your WPS Office version supports TEXTSPLIT, TEXTJOIN, UNIQUE, and SORT, and identify the delimiter used in your source cells, such as a slash.

Solution 1Recommended

Combine cells with TEXTJOIN before TEXTSPLIT and UNIQUE

Use this formula when you need a sorted, duplicate-free list from delimiter-separated values in a range.

TEXTSPLIT is designed to split a single text string, so passing a multi-cell range directly can produce incomplete results. TEXTJOIN merges the source cells into one delimiter-separated string, allowing TEXTSPLIT to process every value.

1
Select the output cell

Click an empty cell where you want the spilled unique list to start, for example F3.

2
Enter the TEXTJOIN-TEXTSPLIT-UNIQUE formula

Type =SORT(UNIQUE(TEXTSPLIT(TEXTJOIN("/",TRUE,D3:D4),,"/",TRUE,0))) and adjust D3:D4 to your source range.

3
Adjust the delimiter

Replace "/" with the delimiter used in your data, such as "," or "-", in both TEXTJOIN and TEXTSPLIT.

4
Press Enter and review the results

Press Enter. WPS Spreadsheets spills the sorted unique values from the combined source cells.

Combine cells with TEXTJOIN before TEXTSPLIT and UNIQUE
Formula returns all unique values: Because TEXTJOIN combines the range first, values after the first separator are no longer omitted.
WPS Spreadsheets formula

Extract all unique values with WPS Spreadsheets formulas

Use TEXTJOIN, TEXTSPLIT, UNIQUE, and SORT together in WPS Spreadsheets to turn multi-cell delimiter-separated data into a sorted unique list without losing values after the first separator.

  1. 1. Open your workbook in WPS Spreadsheets: Launch WPS Office and open the worksheet that contains the delimiter-separated source cells.
  2. 2. Select the output cell: Click an empty cell where the unique list should start, such as F3.
  3. 3. Enter the formula: Type =SORT(UNIQUE(TEXTSPLIT(TEXTJOIN("/",TRUE,D3:D4),,"/",TRUE,0))) and replace D3:D4 and "/" with your actual range and delimiter.
  4. 4. Press Enter: Press Enter to spill the sorted unique values automatically.
  5. 5. Save or share the workbook: Use File > Save As to keep the result in WPS format or save as an Excel .xlsx file for Microsoft Office compatibility.
Combines source cells first, fixing TEXTSPLIT range behavior that can omit values after the first separatorWorks with standard .xlsx, .xls, and WPS worksheet filesUses familiar Excel-compatible functions for a smooth migrationFree and lightweight alternative to Microsoft ExcelDynamic array results update automatically when source data changes
microsoft office alternative - wps office

Frequently Asked Questions

Why does TEXTSPLIT miss text after the first slash when I reference D3:D4 directly?

TEXTSPLIT expects one text string, so a multi-cell range can be interpreted in an unexpected way. Wrap the range in TEXTJOIN("/",TRUE,D3:D4) to merge all entries into a single string before splitting.

Can I use this technique with a comma-separated list instead of slashes?

Yes. Replace "/" with "," in both TEXTJOIN and TEXTSPLIT, for example: =SORT(UNIQUE(TEXTSPLIT(TEXTJOIN(",",TRUE,D3:D4),,",",TRUE,0))).

What do the TRUE and 0 arguments in TEXTSPLIT do?

TRUE tells TEXTSPLIT to ignore empty values produced by repeated delimiters, and 0 selects the default case-sensitive match mode in WPS Spreadsheets.

Do I have to include SORT in the formula?

No. If you prefer the order in which unique values first appear, use =UNIQUE(TEXTSPLIT(TEXTJOIN("/",TRUE,D3:D4),,"/",TRUE,0)) without SORT.

Is this formula available in WPS Spreadsheets?

Yes, recent WPS Office versions include TEXTJOIN, TEXTSPLIT, UNIQUE, and SORT. Update WPS Office if the functions are not recognized.