SRO
Structural
- Dec 27, 2001
- 104
Is there a comand to get the Max absolute value for a group of numbers. ie
1, 6, -14, 7 = 14
1, 6, -14, 7 = 14
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function MaxAbs(ParamArray R() As Variant)
Dim C As Variant, V As Double
V = 0
For Each C In R
If Abs(C.Value) > V Then V = Abs(C.Value)
Next C
MaxAbs = V
End Function