I'm in the process of learning Excel VBA, and am trying to create a simple function.
The idea is that I would use a cell as an input, and the function would get tell you the standard deviation of 12 values placed around that cell.
So if I type getstd(A1), it would get me the standard deviation of A1, A3, A5, A7, C1, C3, C5, C7, and E1, E3, E5 and E7.
If I type getstd(X23), it would get the std of 12 other values placed at the same offsets around X23.
My biggest problem right now is figuring out how to use a cell as an imput.
For example, when experimenting with offsetting :
Function getstd(rng as Range)
Range(rng).Offset(1,1) = "hello world"
End Function
It always gives me a #Value error.
I feel that if I can get that to work, then creating my function should be easy.
Thank you!
Michael