RANK.EQ in ONLYOFFICE: Ranking Direction and Equal Values
Use RANK.EQ in ONLYOFFICE with three worked numeric examples, CSV practice data, tie rules, and software-specific documentation notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
RANK.EQ returns a number’s position, giving tied values their best shared position. If two records occupy positions two and three, both receive two and the next record receives four. This is competition ranking, not a unique row identifier.
Availability and version history
- Introduced: The Desktop Editors changelog explicitly lists RANK.EQ among functions added in version 4.4.1. Docs and mobile introduction dates remain unknown.
- Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final supported-version endpoint is established.
- Scope: Desktop and Docs release separately. This history does not establish identical behavior across older builds, mobile clients or every deployment.
- Checked: October 14, 2026, against the official RANK.EQ reference and cited evidence. Examples were independently calculated; no native execution of these rank formulas was performed.
Syntax and documented order values
=RANK.EQ(number, ref, [order])
The official RANK.EQ entry requires a target number and a comparison range containing it. Its optional order is numeric: 0 or omitted means descending; any other numeric value means ascending. The examples use explicit 0 and 1. This numeric rule does not require assuming that a logical value or imported text is equivalent.
Descending means the highest value receives rank one. For delivery hours, ascending is often more useful because shorter times should come first. Choose the direction to match the question.
Retain the complete delivery register
Create DeliveryRanks with columns A:M and rows 1–12 available. Enter Hours in A1, Record in B1 and the following data in A2:B9. Put Requested position in D1 and 3 in D2; leave C, E and F empty.
| Row | A: hours | B: record |
|---|---|---|
| 2 | 14 | 1 |
| 3 | 18 | 2 |
| 4 | 22 | 3 |
| 5 | 18 | 4 |
| 6 | 26 | 5 |
| 7 | 30 | 6 |
| 8 | 10 | 7 |
| 9 | 22 | 8 |
Alternatively, download the original RANK.EQ practice CSV and import it into a new blank DeliveryRanks sheet at A1, with the comma delimiter and headers retained. It supplies all eight observations and record numbers, D2=3, spacer columns and an empty EdgeCase column F. The CSV contains inputs only. Keep the hours numeric and place results outside A:F.
Three core examples, then every row
Use G1:H4 for labels and these formulas:
| Cell | Formula | Expected result |
|---|---|---|
| H2 | =RANK.EQ(A2,$A$2:$A$9,0) |
7 |
| H3 | =RANK.EQ(18,$A$2:$A$9,0) |
5 |
| H4 | =RANK.EQ(A2,$A$2:$A$9,1) |
2 |
Six observations exceed 14, giving descending rank seven. Only 10 is below 14, giving ascending rank two. The two 18-hour records both occupy best descending position five.
In J1:M1 enter Descending, Ascending, Nonzero order control and Top-position flag. Put =RANK.EQ(A2,$A$2:$A$9,0) in J2, =RANK.EQ(A2,$A$2:$A$9,1) in K2, =RANK.EQ(A2,$A$2:$A$9,-2) in L2, and =IF(J2<=$D$2,1,0) in M2. Fill J2:M2 through row 9.
| Row | Expected J | Expected K | Expected L | Expected M |
|---|---|---|---|---|
| 2 | 7 | 2 | 2 | 0 |
| 3 | 5 | 3 | 3 | 0 |
| 4 | 3 | 5 | 5 | 1 |
| 5 | 5 | 3 | 3 | 0 |
| 6 | 2 | 7 | 7 | 1 |
| 7 | 1 | 8 | 8 | 1 |
| 8 | 8 | 1 | 1 | 0 |
| 9 | 3 | 5 | 5 | 1 |
The negative numeric order -2 is nonzero, so L matches ascending K. In H6 enter =SUM(M2:M9) for 4. A cutoff at descending position three selects four records because two 22-hour observations share third place.
A rank cutoff is not an exact record count
In H7 enter =LARGE(A2:A9,D2) for 22. On a separate CutoffCheck sheet, copy A1:B9 from DeliveryRanks. Put =IF(A2>=22,1,0) in C2 and fill through C9; expect 0,0,1,0,1,1,0,1, again totaling four. This threshold agrees with the descending rank cutoff for the supplied data.
If a report needs exactly three shipments, it needs an explicit tie-breaking policy. Do not invent uniqueness by changing or dropping one of the tied measurements. Keep the original record numbers when sorting so that ranks remain attached to the correct shipments.
For a lowest-time comparison, use D1:E9 on CutoffCheck: put Ascending in D1 and Within position three in E1. Enter =RANK.EQ(A2,$A$2:$A$9,1) in D2 and =IF(D2<=3,1,0) in E2, filling through row 9. E becomes 1,1,0,1,0,0,1,0, also four records. The selected shipments are different because the ranking direction changed.
The vendor’s tied-value example
On VendorEqualRank, put 7, 6, 5 and 5 in A1:A4, then =RANK.EQ(A3,A1:A4,0) in C1. The official illustration shows 3. RANK.AVG would give 3.5 for that tied group.
Limits and related functions
- Keep the comparison range fixed and preserve full stored precision. Display rounding can hide differences between apparently tied values.
- Do not mix incompatible measurements, such as transit-only hours and total order-to-delivery hours.
- Use present numeric targets for these examples. The help does not establish every absent-value, blank, text, Boolean or exact-error boundary.
- A source-specific result in one editor does not establish all other clients’ behavior or file conversion rules.
LARGE and SMALL work in the opposite direction, returning a value for a requested position. IF and SUM create and count the explicit cutoff flags.