LARGE in ONLYOFFICE: Nth-Largest Values and Ties
Use LARGE 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
Quick answer: =LARGE(A2:A9,2) returns an independently expected 26 hours for the eight delivery times below. It selects position two when the observations are ordered from largest to smallest, retaining duplicate values.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final supported-version endpoint is established.
- Scope: Docs and Desktop Editors release separately. The unversioned help does not establish identical support in older builds, mobile clients or every deployment.
- Checked: October 14, 2026, against the official LARGE reference and the cited implementation. Examples were independently calculated; these particular formulas have not been run in the native application.
Syntax and a deliberate position
=LARGE(array, k)
Both arguments are required. ONLYOFFICE describes array as the selected cell range and k as a numeric position greater than zero. These examples use whole-number positions from one through the number of complete numeric observations.
The reviewed official source revision supports ordering and one-based selection for these integer numeric cases. It does not justify copying every type, fractional-position or error rule from the opposite function: LARGE and SMALL have different branches in that revision. No installed-build match is asserted.
Complete original delivery worksheet
Create Deliveries with Hours and Record in A1:B1. Enter all eight records:
| 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 |
Put Requested position in D1 and numeric 3 in D2. Put Signed control in F1 and -8,-3,0,6,6 in F2:F6.
Alternatively, download the unchanged LARGE practice CSV and import it at A1 in a new blank sheet, preserving the header row and comma delimiter. The blank spacer columns separate the main data, D2 position and F2:F6 controls. Output cells below start at H.
Three original cases, plus a numeric count
| Cell | Formula | Expected result |
|---|---|---|
| H2 | =LARGE(A2:A9,2) |
26 |
| H3 | =LARGE($A$2:$A$9,D2) |
22 |
| H4 | =LARGE(F2:F6,2) |
6 |
| H5 | =COUNT(A2:A9) |
8 |
The main ordered list is 30,26,22,22,18,18,14,10. H3 uses D2’s position three, with the source range fixed. The signed control orders to 6,6,0,-3,-8, preserving two separate observations of six.
Change D2 to 1; H3 becomes 30. Change D2 to 8; it becomes 10. Restore D2 to 3. A requested position is not an original row number: H2 returns a duration measurement, not its delivery identifier.
Build a complete eight-position summary
Enter Position and Value in K1:L1. Put 1,2,3,4,5,6,7,8 in K2:K9. Enter =LARGE($A$2:$A$9,K2) in L2 and fill through L9. Expect 30,26,22,22,18,18,14,10.
Only the position reference moves. In L11 enter =SUM(L2:L9) for 160, and in L12 enter =SUM(A2:A9) for the same 160. The summary retains every observation and both occurrences of 18 and 22. It consists of scalar formulas, without assuming dynamic-array spill support.
Advanced: an inclusive cutoff retains ties
In H6 enter =LARGE(A2:A9,3); expect 22. Put Selected by cutoff in M1. In M2 enter =IF(A2>=$H$6,1,0) and fill through M9. The flags are 0,0,1,0,1,1,0,1.
In O2 enter =SUM(M2:M9); expect 4. Although the cutoff came from position three, both boundary ties qualify. In O3 enter =SUM(L2:L4); expect 78 for exactly the first three ordered positions.
In N2 enter =IF(A2>=$H$6,A2,0) and fill through N9. Put =SUM(N2:N9) in O4; expect 100 for all four records selected by the inclusive cutoff. This is a different selection policy from exactly three records.
If a report requires exactly three original records, specify a fair, reproducible tie-breaker using identifiers or another justified field. The numeric cutoff alone does not decide which tied record to remove. Also remember that longer delivery time is a numerical direction, not a complete judgment about service quality.
Reproduce the official illustration
Create VendorPositions and enter the exact eight numbers below in A1:D2, without a heading inside that input block:
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | 4 | 13 | 27 | 56 |
| 2 | 46 | 79 | 22 | 12 |
In F2 enter =LARGE(A1:D2,4); expect 27, matching the official image. The four largest values are 79,56,46,27.
Limits and related functions
Keep k within the complete numeric observation count and use an explicit integer for these examples. The short function entry does not establish every invalid-position error, mixed-type range, fractional input or imported-string result. Do not replace an unexplained error with zero and report it as a measured delivery time.
Keep summary formulas outside the source range, check exact row endpoints and preserve consistent definitions of delivery hours. The function returns a value without rearranging the source records or supplying a linked identifier.
SMALL orders from the opposite end. MEDIAN describes the centre; COUNT, IF and SUM make these complete numeric controls transparent. Other programs’ error, coercion and export rules need their own evidence.