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: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked

Quick answer

Choose the nearest standardized increment for estimates, measurements and planning. The documented English-language formula is MROUND(number, multiple). All numerical outcomes below are independently derived worksheet expectations, with the official documentation cited for the exact signature and explicit error notes.

What MROUND does — and when to choose it

Round a numerical value to the nearest multiple, rather than always up or down. For positive values and positive increments, compare the neighbouring integer multiples, then choose the closest. Cases exactly halfway between two multiples are deliberately reserved for a native-version test.

A multiple is not the same thing as a decimal-place count. With 2-unit increments, permitted results are 0, 2, 4, 6, 8 and so on; a request to round to two decimal places is a different calculation. The most important choice is whether your business rule requires an upper boundary, a lower boundary, or the nearest boundary. See the comparison section below before substituting similar function names.

Exact ONLYOFFICE syntax and arguments

=MROUND(number, multiple)
Argument Required Type Default Meaning
number Yes Numeric value or cell reference — Value to round.
multiple Yes Numeric increment or cell reference — Size of each permitted interval.

Documentation-confirmed status: ONLYOFFICE’s MROUND reference identifies this name and argument order. Both named arguments are required; no default is documented.

Meaningful error/domain caution: ONLYOFFICE specifically documents #NUM! when number and multiple have different signs. If you need an exact error string for unmentioned invalid inputs, test the target editor rather than importing a rule from Microsoft Excel or another spreadsheet.

Build and reproduce a small worksheet

  1. Open an empty sheet and use row 1 for column labels. Enter each numeric value from the table below into the indicated B, C cells, without currency symbols or units embedded as text.
  2. Keep the scenario labels in A only; labels are explanatory and are not part of the calculation.
  3. Enter the formula for row 2 in the indicated formula column, or type each listed row formula verbatim. Use English function names and comma argument separators for this example workbook.
  4. Compare the displayed output against the independently expected number. If your regional settings use another separator or translated function name, use the settings-aware form rather than assuming these literal commas work in every locale.
  5. Keep raw measurements separate from formatted outputs: changing displayed decimal places does not necessarily change the numeric value used by rounding.
Row A: Scenario B: Number C: Increment D: Formula Expected value
2 Nearest parcel tier 4.1 2 =MROUND(B2,C2) 4
3 Invoice grouping 8 3 =MROUND(B3,C3) 9
4 Weight bucket 12 5 =MROUND(B4,C4) 10
5 Already aligned 12 4 =MROUND(B5,C5) 12
6 Wire length 3.2 0.5 =MROUND(B6,C6) 3
7 Sample rounding 7.7 0.25 =MROUND(B7,C7) 7.75

How to check the arithmetic: For row 2, =MROUND(B2,C2) has an independently expected output of 4. Work from the original number and increment rather than the displayed precision. These rows are examples you can enter yourself; none is claimed to have been executed in the ONLYOFFICE app.

Additional formulas: edge cases and decisions

Enter these into empty cells on a test sheet (the error demonstrations are the official documented sign-mismatch cases only):

Formula Independently expected result Why
=MROUND(4.1,2) 4 4 is 0.1 away; 6 is 1.9 away.
=MROUND(12,4) 12 Exact multiple stays 12.
=MROUND(12,5) 10 10 is 2 away; 15 is 3 away.
=MROUND(8,3) 9 9 is closer than 6.
=MROUND(3.2,0.5) 3 3 is closer than 3.5.
=MROUND(7.7,0.25) 7.75 7.75 is 0.05 away; 7.5 is 0.2 away.
=MROUND(17,12) 12 12 is 5 away; 24 is 7 away.
=MROUND(19.99,10) 20 20 is the nearest ten.
=MROUND(2.1,1) 2 2 is only 0.1 away.
=MROUND(3.9,0.5) 4 4 is closer than 3.5.
=MROUND(5,-2) #NUM! Vendor-documented mismatched signs.
=MROUND(-5,2) #NUM! Vendor-documented mismatched signs.

Validation method: For regular numerical cases, the expected outcomes were calculated with Python Decimal arithmetic and matched to the examples without invoking an ONLYOFFICE calculation engine. The MROUND function signature and any explicitly labelled vendor error text were checked against the official page; other platform-specific behaviour remains untested.

Advanced use in real worksheets

Standardize quoted prices and measurements

In a quotation sheet set B12 = 38.2 and C12 = 5. =MROUND(B12,C12) expects 40 as the nearest five-unit price tier; by comparison, =FLOOR(B12,C12) expects 35 and =CEILING(B12,C12) expects 40. At B13 = 36.1, =MROUND(B13,C12) expects 35 while CEILING still expects 40. This shows why nearest and minimum-capacity rounding should not be used interchangeably.

For a 2.37 m reading rounded to nearest quarter meter, =MROUND(2.37,0.25) expects 2.25, while =MROUND(2.39,0.25) expects 2.5. A measurement logger should preserve unrounded raw data for later analysis.

Halfway ties and sign-sensitive inputs

The public MROUND page identifies the arguments and opposite-sign error but does not specify how a halfway tie is chosen or whether a borderline floating-point representation affects the result. Therefore this manuscript does not certify the result of =MROUND(6,4) as a native ONLYOFFICE observation. A same-sign negative case, such as =MROUND(-7,-4), also requires native confirmation before asserting an application-specific guarantee.

Common problems and troubleshooting

Symptom or question Likely issue Practical check or correction
#NUM! Number and multiple have different signs. Check input sign and intended convention.
Unexpected tier Nearest multiple differs from always-up rounding. Use CEILING if capacity must not be under-provisioned.
Exactly halfway The vendor page does not state the tie rule. Test the relevant version and workbook settings.
Decimal boundary looks inconsistent Binary arithmetic can affect comparisons near a boundary. Check full precision of source cells and recompute as needed.
Zero multiple or text Complete error outcomes are not documented in this short reference. Add input validation and test in editor.

If a workbook shows a general formula error, first confirm that the number of arguments, function spelling, argument separator and value types match the target editor’s settings. The short vendor reference does not justify a complete type-coercion/error-code matrix; do not present guessed #VALUE!/#DIV/0! results as ONLYOFFICE-tested facts.

Compare closely named functions without conflating them

MROUND targets the nearest multiple. The unversioned vendor page does not state a precise halfway-tie convention, so the examples intentionally avoid ties and do not claim observed negative same-sign execution.

Related vendor references (these are separate documented entries, not guaranteed cross-version aliases):

Desktop versus web, releases, languages and compatibility

  • Docs/web documentation: The unversioned English ONLYOFFICE MROUND reference and current Spreadsheet Editor function catalogue list the formula. This establishes a documented function, not a successful calculation in any specific hosted Docs installation.
  • ONLYOFFICE Docs release context: The Docs changelog lists version 10.0.0 with a release date of October 10, 2026. It does not, by itself, establish the first build that supported this particular rounding function, or prove that a given server has upgraded.
  • ONLYOFFICE Desktop: Desktop Editors has a separate public release history. The available entries do not establish a first-support version for this function. No desktop binary was installed or used; treat Desktop support in historical builds as unverified.
  • Regional formula settings: ONLYOFFICE Spreadsheet Editor Advanced Settings documents selectable formula language, region and number separators. The English/comma-based formulas above are the teaching notation, not a locale-independent guarantee. Function names and argument delimiters may require adaptation; there was no localized runtime test.
  • Cross-program workbooks: A matching function name in Excel, LibreOffice, Google Sheets or an older OOXML workbook is not evidence that a particular ONLYOFFICE version executes it identically. Especially test negative-value rules, ties, zero significance and existing workbooks in the intended editor/edition.

Official ONLYOFFICE references and evidence status

Verification limitations: Direct numerical outputs were independently calculated using an explicit mathematical model. Native Desktop/web execution, invalid-input runtime behavior, historical compatibility and localized formula parsing were not tested.