MROUND

Rounds one number to the nearest integer multiple of another.

Sample usage

MROUND(21,14)

MROUND(A2,3)

Syntax

MROUND(value,factor)

  • value – The number to be rounded to the nearest integer multiple of another.

  • factor – The number whose multiples value will be rounded to.

Notes

  • Both value and factor may be non-integral.

  • value and factor must have the same sign; that is, they must both be positive or both negative. If either is zero, MROUND will return 0.

  • If value is equally close to two multiples of factor, the multiple with the greater absolute value will be returned.

See also

TRUNC: Truncates a number to a certain number of significant digits by omitting less significant digits.

ROUNDUPROUNDUP: Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.

ROUNDDOWN: The ROUNDDOWN function rounds a number to a certain number of decimal places, always rounding down to the next valid increment.

ROUND: The ROUND function rounds a number to a certain number of decimal places according to standard rules.

INT: Rounds a number down to the nearest integer that is less than or equal to it.

FLOOR: The FLOOR function rounds a number down to the nearest integer multiple of specified significance.

CEILING: The CEILING function rounds a number up to the nearest integer multiple of specified significance.

Examples

true
Visit the Learning Centre

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organise your inbox and more.

Search
Clear search
Close search
Google apps
Main menu
11005744347356675673
true
Search Help Centre
false
true
true
true
true
true
35
false
false
false
false
false