Round Up by a factor not by a digit [MROUNDUP(number,multiple)]
1) =ROUND(A1/3)*3
as an example
2) Why would you bother?
3) a simple IF test
=IF(B1=1,MROUND(A8,3),MROUND(A8,4))
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
wrote in message
oups.com...
3 questions really, first most relevant and important:
1) I want the functionailty of mround() i.e. rounding by a factor, but
I want it to be rounded up as in roundup, but roundup rounds up by a
specified number of digits not a factor.
Can this be achieved without code?
2) If I was to write the code for my own funtions using vba for:
a)mround,b)roundup,c)& my new function, mroundup, what would the code
be? Also where would be the best palce to save this code so it is
available in all workbooks I open.
3) Can the mroundup function be adjusted to round up by factor z if
the valuex and by factor y if the value<x.
Appreciate any help
Thanks
Matty
|