Function Problems

How to Sort an Excel Table by a Custom Combination of Columns in WPS Office

Natalie TaylorNatalie Taylor Nov 13, 2026 869 views

Question details

The user wants to sort an Excel table by the combined values of two columns, e2IdSpec_Tech_Severity and L1Ground_Severity, instead of sorting by a single column or an existing formula.

How to Sort an Excel Table by a Custom Combination of Columns in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user has a table with separate severity columns and needs a row order based on their concatenated values.
Observed behavior
The table can be sorted by one column, but there is no direct built-in way to sort by a formula-based combination of two columns without a helper key or query.
Before you start

Identify the exact two columns that make up the combined sort key and create space for a helper column. If you choose the formula-only method, confirm that your WPS Office version supports LET, CHOOSECOLS, and SORTBY dynamic array functions.

Solution 1Recommended

Create a Helper Column and Sort by the Combined Key

Best for most workbooks because it preserves the original table while making the combined sort key visible and reusable.

A helper column is the most reliable way to sort by a custom combination of two columns. It shows the concatenated sort key directly in the table and keeps the original columns unchanged.

1
Insert a helper column next to your table

In WPS Spreadsheets, select the first empty column beside your table and type a header such as Combined_Sort_Key.

2
Enter a concatenation formula

In the first data row of the helper column, enter =B2&C2, replacing B2 and C2 with the actual cells containing e2IdSpec_Tech_Severity and L1Ground_Severity. Press Enter and double-click the fill handle to copy it down.

3
Sort the table by the helper column

Select any cell in the table, go to the Data tab, click Sort, choose the helper column as the sort key, set the order, and click OK.

4
Hide or keep the helper column

If the helper column should not appear in reports, right-click its column letter and choose Hide. The sort order remains intact.

Create a Helper Column and Sort by the Combined Key
Sort order updated: The table is now sorted by the combined severity values, and you can hide the helper column if needed.
WPS Spreadsheets sorting

Sort Excel Tables by a Custom Combination of Columns in WPS Office

WPS Office Spreadsheets gives you a direct way to sort a table by a custom combination of columns. Add a helper column that joins the two severity values, sort by that key, or use a dynamic formula to build a sorted copy while keeping the original table intact.

  1. 1. Open your Excel table in WPS Spreadsheets: Launch WPS Office Spreadsheets and open the .xlsx workbook that contains the table.
  2. 2. Create a combined sort key in a helper column: Insert a helper column and enter a formula such as =B2&C2 to join e2IdSpec_Tech_Severity and L1Ground_Severity.
  3. 3. Sort by the helper column: Select the table, go to Data > Sort, choose the combined helper column as the sort key, set the order, and click OK.
  4. 4. Save the workbook: Save the file as .xlsx to keep the sorted order and remain fully compatible with Excel.
Sort by combined values from multiple columns without changing original data.Works with Excel .xlsx files and preserves Microsoft Office format compatibility.Free and lightweight alternative to Microsoft Excel with a familiar ribbon UI.Includes Data tab sorting and formula options for Excel-like workflows.
microsoft office alternative - wps office

Frequently Asked Questions

Can I sort an Excel table by two columns without adding a helper column?

Excel and WPS Spreadsheets do not provide a built-in sort-by-formula option for a combined key. You can either add a helper column that concatenates the two columns, use a LET/SORTBY dynamic array formula to create a sorted copy, or merge the fields in Power Query before loading.

Which formula creates a sorted copy using the combined values of two columns?

Use a formula like =LET(specTech,CHOOSECOLS(Table1,2),ground,CHOOSECOLS(Table1,3),combined,specTech&ground,sorted,SORTBY(Table1,combined),IF(sorted<>"",sorted,"")) and adjust the table name and column positions. It requires dynamic array support.

Will the helper column change my original data?

No. A helper column only adds a new calculated column. You can hide it after sorting, and the source columns remain unchanged.

Does WPS Office support Power Query for sorting combined columns?

If your WPS Spreadsheets version includes Power Query, you can load the table into Power Query Editor, merge the two columns, sort by the merged column, and close and load the result into the spreadsheet.