Hello!
I have this formula:
and i need to make vba code
x = range 1
f = range 2
I have started:
Something isnt right!
Need help!
I have this formula:
and i need to make vba code
x = range 1
f = range 2
I have started:
Code:
Function SN(x, f)
'------------------------------------------------
sum = Application.SumProduct(x, f)
avg = sum / Application.Sum(f)
fi = Application.Sum(f)
'------------------------------------------------
For Each a In x
minus = (a - avg) ^ 2
Next a
For Each b In f
xf = xf + minus * b
Next b
'------------------------------------------------
SN = (xf / fi) ^ 0.5
End Function
Need help!