Contact

MROUND Function in ONLYOFFICE Spreadsheet Editor: Syntax and Examples

Math and Trigonometry Beginner ONLYOFFICE Spreadsheet Editor

Choose the nearest standardized increment for estimates, measurements and planning. Learn the documented ONLYOFFICE signature with a reproducible worksheet, real applications, troubleshooting and compatibility cautions.

Verification status: Eight nearest-multiple cases checked, including signed ties and same-sign negative inputs in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64; additional examples independently calculated. Other clients and builds untested. How formula examples are checked

MROUND chooses a nearby multiple of a specified increment. It is useful for standardizing measurements or planning tiers when the rule is nearest, rather than always up or down. An increment of 2 means multiples of two; it does not mean two decimal places.

Availability and version history

  • Introduced: The original introduction release and date are not established by the checked references.
  • Availability: Documented in current ONLYOFFICE help and observed in Desktop Editors Community 10.0.0.169. This is not a final supported-version endpoint.
  • Scope: Native observations cover Linux x64 only. Docs, mobile, earlier versions and other desktop platforms remain separately untested.
  • Checked: October 14, 2026, against the official MROUND reference, pinned source and the explicitly identified native cases. Additional worked results were independently calculated.

Syntax and the documented sign restriction

MROUND(number, multiple)

The official MROUND reference lists both arguments without a default. It explicitly documents #NUM! when their signs differ. Thus MROUND(5,-2) and MROUND(-5,2) are documentation-backed error examples; they were not included in the valid-input native fixture.

The short help does not specify a midpoint tie convention. The tested signed cases below resolve particular examples in one desktop build without inventing a general cross-version guarantee.

Preserve the original six-row worksheet

Create NearestTiers, with A1:F9. Put Scenario, Number, Increment, Result, Adjustment and Distance in A1:F1. Enter numeric B/C inputs, keeping labels in A.

Row A: Scenario B: Number C: Increment D: Result
2 Nearest parcel tier 4.1 2 4
3 Invoice grouping 8 3 9
4 Weight bucket 12 5 10
5 Already aligned 12 4 12
6 Wire length 3.2 0.5 3
7 Sample rounding 7.7 0.25 7.75

Put =MROUND(B2,C2) in D2 and fill through D7. Enter =D2-B2 in E2 and =ABS(E2) in F2, filling both through row 7. Independent adjustments are -0.1, 1, -2, 0, -0.2, 0.05; distances are 0.1, 1, 2, 0, 0.2, 0.05.

For 4.1 with increment 2, the neighbors are 4 and 6. Their distances are 0.1 and 1.9, so 4 is closer. With 8 and increment 3, the neighbors are 6 and 9; the closer value is 9. This method checks the arithmetic without relying on displayed decimal places.

Eight numeric-reference cases were checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64: rows 2, 6 and 7 above, the three signed cases below, and both quarter-metre examples. The other outputs are independently calculated; the sign-mismatch errors remain documentation-backed.

Signed and halfway examples

Create SignedMultiples, with A1:D5. Enter Number, Increment, Result and Adjustment in row 1. Put 6, -6, -7 in A2:A4 and 4, -4, -4 in B2:B4. Enter =MROUND(A2,B2) in C2 and fill through C4.

The checked desktop results are 8, -8, -8. D2 =C2-A2, filled through D4, gives 2, -2, -1. The ±6 cases are exact midpoints between adjacent multiples of four. The -7 case is closer to -8 than -4.

The inspected official source has a separate scaling helper and sign check. That code revision is useful context; the native result workbook, rather than a presumed source/build match, supports the three observed values.

Additional independent nearest-value checks

Use a separate MoreTiers sheet so the original six rows remain unchanged.

Cell Formula Independent result
A2 =MROUND(17,12) 12
A3 =MROUND(19.99,10) 20
A4 =MROUND(2.1,1) 2
A5 =MROUND(3.9,0.5) 4

These non-midpoint cases compare the two neighboring multiples. They do not add new native observations or settle zero-increment and mixed-type behavior.

Advanced: nearest tier versus a capacity boundary

Create Quotes, with A1:F5. Put 38.2 in B2, 36.1 in B3 and the common increment 5 in C2. Put the three formulas below in D2:F2, then fill through row 3:

Column Formula in row 2 Row 2 result Row 3 result
D =MROUND(B2,$C$2) 40 35
E =FLOOR(B2,$C$2) 35 35
F =CEILING(B2,$C$2) 40 40

These positive-input model results show why nearest rounding cannot guarantee enough capacity. If the amount must never be below the requested quantity, inspect the upper-bound rule instead of substituting MROUND.

For measurements, enter 2.37 and 2.39 in A2:A3 on QuarterMetres. Put 0.25 in B2 and use =MROUND(A2,$B$2) in C2, filled to C3. The checked desktop outputs were 2.25, 2.5. Preserve the raw readings: rounding them does not determine measurement uncertainty.

Reconstruct the vendor screenshot

Create VendorMultiple with 14.35 in A1 and 0.4 in A2. Put =MROUND(A1,A2) in C2. The official screenshot shows 14.4. The neighboring multiple 14.0 is farther away; this is not a tie.

Limits and troubleshooting

  • Opposite signs have the documented #NUM! rule. Same-sign negative tests are separately identified above.
  • Zero increments, source blanks, text, Boolean values, arrays and extreme magnitudes remain untested here. Do not assign an undocumented error token to them.
  • The tested integer midpoints and two nearby quarter-metre values do not establish every decimal tie. Check the actual stored value and target build for precision-sensitive work.
  • ROUND accepts a place count. ROUNDUP and ROUNDDOWN select directions at that place. They are not aliases for MROUND.
  • FLOOR and CEILING have their own sign rules; the comparison here deliberately uses positive values.

English examples use comma separators. The function-entry guide and local settings determine accepted formula notation. A matching function name in another spreadsheet is not a precision or import guarantee.