Hi there,
I've been experiencing some unexpected behaviour when using the MROUND function.
I have a formula which rounds a dollar figure to the nearest x cents. For example I've been usingto round x to the nearest 10 cents.Formula:Please Login or Register to view this content.
The formula works as expected most of the time, for example
returns 205.3 andFormula:Please Login or Register to view this content.returns 85.9Formula:Please Login or Register to view this content.
The problem occurs when x is a multiple of 5 cents. In this situation I would expect Excel to round the value up, and the Microsoft support page for MROUND suggests that this is how the function should work
In some situations this works e.g.MROUND rounds up, away from zero, if the remainder of dividing number by multiple is greater than or equal to half the value of multiple.returns 6.2, however in others e.g.Formula:Please Login or Register to view this content.returns 26.1.Formula:Please Login or Register to view this content.
Any ideas what may be happening here? Any help would be greatly appreciated.
Bookmarks