← All how-to recipes

How to round a number to the nearest multiple (5, 10, 0.25...)

✓ Verified in LibreOffice 25.8.7.3 ✓ Verified in Google Sheets (2026-08-30)

Round a value to the nearest 5, 10, 25 cents, or any step — not just to decimal places.

The formula

AppFormulaNotes
Excel=MROUND(A2,5)Nearest 5. Use CEILING(A2,5) to always round up, FLOOR(A2,5) down.
Google Sheets=MROUND(A2,5)Identical.
LibreOffice Calc=MROUND(A2,5)Identical.

How it works

MROUND(number, multiple) rounds to the nearest step. 13 is closer to 15 than to 10, so it rounds to 15. For money, MROUND(x,0.25) snaps to the nearest quarter; CEILING/FLOOR force the direction.

Verified, not just documented

We ran =MROUND(A2,5) in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned 15 — exactly the expected result. We then ran the same formulas in Google Sheets, executed 2026-08-30: a formula-only workbook goes into Google Drive, which converts it to a Sheet and recalculates every formula with Google’s own engine, and comes back out as .xlsx carrying the values Google computed. It returned 15 for the worked example, the same value LibreOffice produced. Both engines’ numbers on this page are executed results. The Excel formula follows Microsoft’s official documented syntax — we do not run Excel.

Functions used

MROUND — see full Excel, Google Sheets & LibreOffice compatibility for each.

Related recipes

Related comparisons