Thanks,
Jorg
Function MROUND(x As Variant, Multiple As Variant) As Double
'Decimal round to nearest multiple, else away from zero
'Mimics Excel MROUND() except: limited range, improved accuracy, allows different signs
Dim ScalingFactor As Variant
If IsNumeric(x) Then
ScalingFactor = CDec(Abs(Multiple))
MROUND = Fix(x / ScalingFactor + Sgn(x) / 2) * ScalingFactor
End If
End Function
--
Paul