This tutorial explains how to use Excel MRound Function round to nearest multiple
Excel MRound Function round to nearest multiple
Excel Round Function is used to round to nearest digit, while Excel MRound Function is used to round to nearest multiple. The first time I used MRound Function is to round employee bonus to nearest $100, because we don’t want the bonus amount looks better. For example, $11040 is rounded to $11000.
If you fail to use Excel MRound Function, navigate to Developer > Add-Ins > enable Analysis TooPak
Syntax of Excel MRound Function – round to nearest multiple
|Number||The value to round|
|Multiple||Multiple to use in round, must be of the same sign as Number, otherise #NUM! will return|
Note that the logic is same for positive and negative number. For example, Mround(0.5,1) = 1, MROUND(-0.5,-1) = -1
Example of Excel MRound Function – round to nearest multiple
|0.5||1||1||Mround also round half up|
|-1.1||-1||#NUM!||Multiple is positive but number is negative|
Workaround of Excel MRound Function – #NUM! due to different sign
To avoid error due to sign, use the Sign Function to synchronize the sign of Multiple with Number. Sign Function is to return a positive value as 1, negative value as -1.