Contact

MAX Function in ONLYOFFICE Spreadsheet Editor: Formula, Examples & Troubleshooting

Statistical Intermediate ONLYOFFICE Spreadsheet Editor

Learn the MAX formula in ONLYOFFICE Spreadsheet Editor: find the largest numeric value, with reproducible examples, expected answers and compatibility cautions.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =MAX(D2:D9) has an independently expected result of 210 for the eight order amounts below. It selects the largest numeric candidate, without returning an order identifier or applying payment-status conditions.

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 MAX reference and the cited implementation. Examples were independently calculated; these particular formulas have not been run in the native application.

Syntax and the source of the type rule

=MAX(number1, [number2], ...)

The first numeric input or range is required. Further arguments are optional; the help documents up to 255 numeric inputs. Brackets are documentation notation, not formula characters. These examples use the English reference’s commas.

The short function page does not describe every input conversion. The reviewed official source revision compares numeric values from referenced cells and ranges, with separate branches for direct inputs and arrays. Text, Boolean and empty referenced cells do not become ordinary numeric candidates in that range branch. This is a source-scoped model, not a native test of every client or build.

Complete original order table

Create Orders and put the six headings in A1:F1. Enter all eight records; Amount and Units must be numbers rather than displayed numeric-looking strings.

Row A: Item B: Team C: Status D: Amount E: Units F: Agent
2 Pen East Paid 120 12 Ana
3 Pad West Pending 75 5 Bo
4 Box East Paid 210 7 Ana
5 Tape North Paid 90 0 Cy
6 Folder West Paid 150 3 Bo
7 Pen East Pending 60 8 Dee
8 Pad West Paid 125 12 Ana
9 Box North Pending 80 4 Cy

Place results outside A:F:

Cell Formula Expected result
H2 =MAX(D2:D9) 210
H3 =MAX(9,-2,17) 17
H4 =MAX(D2:D5,D6:D9) 210
H5 =MAX(D2:D9)-MIN(D2:D9) 150
H6 =COUNT(D2:D9) 8

H2 and H3 preserve the original worked outputs. H2’s value occurs at D4. H4 partitions the original eight candidates into two nonoverlapping ranges. H5 measures the full amount range, 210−60, rather than the number of orders or a statistical outlier count.

An editable threshold and an equality check

Put 200 in J2. In J3 enter:

=IF(H2>J2,"Review large order","Within limit")

Expect Review large order. Change J2 to 210; the result becomes Within limit, because equality does not satisfy >. Restore J2 to 200. The flag signals a rule to investigate; it does not identify a bad record automatically.

Advanced: show ties without sorting away the records

Put Matches extreme in L1. In L2 enter =IF(D2=$H$2,1,0) and fill through L9. The original flags are 0,0,1,0,0,0,0,0. In N2 enter =SUM(L2:L9); expect 1 matching order.

Copy Orders to TiedOrders, preserving the original. Change D3 from 75 to 210. H2 stays 210, while N2 becomes 2. The extreme value did not change, but two source records now attain it. Keep their row identifiers or complete records when the next step needs a specific order.

Imported text needs a stored-type check

On another copy named TextAmount, replace D4’s numeric 210 with plain text pending. In the reviewed range-handling model, H2 becomes 150 and H6 becomes 7. That change reflects an excluded entry, not an actual improvement in the underlying orders.

A number format is not the same as a stored data type. If an imported value is text, verify a deliberate conversion rather than merely changing its appearance. The cited source’s direct-argument conversion branch is separate, so do not assume that a quoted literal and a text cell are interchangeable.

Reproduce the vendor illustration

Create VendorExtreme separately and put these six numeric values in A1:C2, with no heading inside the block:

Row A B C
1 123 197 46
2 354 67 456

Enter =MAX(A1:C2) in E2; expect 456, matching the official image. The MAX illustration uses 354 in A2; preserve that exact input rather than substituting the 345 shown in some other function illustrations.

An extreme has no built-in row criterion. For example, the original minimum of 60 belongs to a Pending order; it is not the minimum Paid amount. Use separately checked conditional aggregation when eligibility matters.

All-empty, error-only, array, imported-string and numerical-limit behavior is not established by these numeric reconstructions. The source revision’s existence also does not establish the function’s first release or identical export behavior. Keep original data and inspect exact range endpoints when a result changes.

MIN returns the opposite numeric extreme. COUNT checks numeric observations, IF makes the threshold and tie rules visible, and SUM totals the numeric flags. MAXA needs its own mixed-input rules rather than an assumed substitution.