How to Use the SORTBY Function in WPS on Windows

Last updated:July 20, 2026

Use SORTBY through 3 how-to topics: entering the SORTBY function, setting arguments to return sorted results, and checking errors with recalculation; you can jump from the How-to Index and complete each task step by step.

How-to Index

How-to Guide

1. Enter the SORTBY Function

Entry point: Formulas tab → formula bar

  1. Open WPS Spreadsheet and select the cell where you want to enter the formula.
  2. Type = in the formula bar or directly in the cell.
  3. Continue by typing SORTBY(.
  4. Check the syntax prompt that appears and confirm the function name and argument order.

Success Criteria

  • Interface result: the SORTBY syntax prompt appears after you enter the function name.
  • Next action available: you can continue entering the array, sort array, and sort order arguments.

Tips While Using

  • Common mistake: if you do not type = first, the content may be treated as plain text.
  • Environment note: the cell must be in an editable state.

2. Set Arguments and Return Sorted Results

Entry point: selected target cell → formula bar

  1. After SORTBY(, enter the array or range that you want to sort.
  2. Enter the corresponding sort array or range.
  3. Add sort order or more sort arrays if needed.
  4. Type the closing parenthesis and press Enter.
  5. Check whether the result appears as expected in the cell or returned range.

Success Criteria

  • Interface result: the cell returns sorted results.
  • Next action available: you can revise the arguments or combine the formula with other functions.
  • No side effect: the source data range is not directly overwritten by entering the formula.

Tips While Using

  • Common mistake: missing arguments, unmatched parentheses, or incorrect separators can cause formula errors.
  • Environment note: the sort array should correspond correctly to the data being sorted.

3. Check Errors and Recalculate Manually

Entry point: result cell → formula bar / keyboard shortcut

  1. If an error appears, first check whether the parentheses are matched correctly.
  2. Check whether the argument types and count fit the function requirements.
  3. Check whether referenced cells contain numbers stored as text or circular references.
  4. Edit the formula and press Enter again.
  5. If needed, press F9 to trigger manual recalculation.

Success Criteria

  • Interface result: the error message disappears and the result displays normally.
  • Next action available: you can continue editing, copying, or nesting the formula.

Tips While Using

  • Common mistake: numbers stored as text may affect sorting results.
  • Environment note: manual recalculation depends on the worksheet being in a normal calculation state.