Thursday
Learn Excel VBA By Index (B)
Built -in Functions
This code will use the Excel built-in function, Average, Max, Min and Standard Deviation.
Option Base 1
Sub BuiltInFunctionDemo ()
Dim MyArray(100) As Integer
For x = 1 to 100
MyArray(x) = Rnd
Next x
average = Application.Average(MyArray)
max = Application.Max(MyArray)
min = Application.Min(MyArray)
std = Application.Stdev(MyArray)
End Sub
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment