SORTBY Function in Zoho Sheet: Syntax, Examples and Compatibility
Use SORTBY in Zoho Sheet to sort one data range using a separate numeric or text key. Two original examples, expected results, cautions and official software documentation.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Zoho Sheet. How formula examples are checked
Quick answer: sort one data range using a separate numeric or text key in Zoho Sheet. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Zoho Sheet test results. A guide being published here does not certify every software release or file-import scenario.
Syntax and arguments
=SORTBY(array; by_array1; [sort_order1]; ...)
array is the output dataset; by_array1 supplies aligned sort keys. Use -1 for descending order.
Best use case: Sort one data range using a separate numeric or text key.
Set up the example sheet
Enter the following sales results:
| Row | A: Agent | B: Units |
|---|---|---|
| 2 | Ana | 3 |
| 3 | Bo | 8 |
| 4 | Cy | 5 |
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These examples use semicolons between formula arguments in the documented Calc-style syntax; adjust separators if your application or regional settings differ.
Worked example 1: SORTBY with known input
=SORTBY(A2:B4;B2:B4;-1)
Expected output: rows Bo,8 / Cy,5 / Ana,3.
The separate key column B controls descending numeric order while both data columns stay aligned.
Worked example 2: a second SORTBY case
=SORTBY(A2:A4;B2:B4;1)
Expected output: vertical list Ana, Cy, Bo.
The displayed names follow units from smallest to largest: 3, 5, then 8.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Practical advice and troubleshooting
When this formula helps: Use SORTBY when you want a sort key independent of the columns you display. Excel SORT instead uses a column index within the source array.
Important edge case: The sort-key range must have an appropriate size. A blocked spill area prevents output; an unstable/ambiguous sort should use an additional tie-breaker key.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.
Compatibility and version considerations
Zoho Sheet official help documents these function names. Most Zoho help articles present semicolon-separated arguments; review the user locale and current function help. Google Sheets SORT takes a different signature: SORT(range, sort_column, is_ascending, ...). SORTBY syntax cannot simply be pasted into Google Sheets. The Excel/Google comparison is background only, not a claim of identical behavior in Zoho Sheet.
Microsoft documents SORTBY for Excel 2021/2024 and Microsoft 365.
Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.
Application-specific source note: Zoho Sheet official help documents these function names. Most Zoho help articles present semicolon-separated arguments; review the user locale and current function help.
Formula separator: These examples use semicolons for the function-argument separators. Locale settings can change entry conventions.
Related guides and official documentation
-
Zoho Sheet documentation for SORTBY — function syntax and current vendor information.
Editorial verification: Function name checked in official vendor catalogue on 2026-10-12. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.