Hi
I have a weird error, when using the StDev method on certain number of values.
In the spreadsheet itself, using the formula StDev() on:
1.428,1.428,1.428,1.428,1.428,1.428 [(x6)] = 0 CORRECT
1.428,1.428,1.428,1.428,1.428,1.428, 1.428 [(x7)] = 0 CORRECT
In VBA
1.428,1.428,1.428,1.428,1.428,1.428 [(x6)] = 0 CORRECT
1.428,1.428,1.428,1.428,1.428,1.428, 1.428 [(x7)] = 2.39835584666591-16 WRONG
1.428,1.428,1.428,1.428,1.428,1.428,1.428,1.428 [(x8)] = 0 CORRECT
To be clear, the above values come from a range of cells, and as I add another value, I am keeping the original value. So the values in the incorrect calculation of SD, are also in the correct ones, so it is not like there is an erroneous value being picked up.
I have also tried all the different versions of StDev (P/S...) and they all do exactly the same.
Does anyone know ehere I am going wrong?
Thanks
John
I have a weird error, when using the StDev method on certain number of values.
In the spreadsheet itself, using the formula StDev() on:
1.428,1.428,1.428,1.428,1.428,1.428 [(x6)] = 0 CORRECT
1.428,1.428,1.428,1.428,1.428,1.428, 1.428 [(x7)] = 0 CORRECT
In VBA
1.428,1.428,1.428,1.428,1.428,1.428 [(x6)] = 0 CORRECT
1.428,1.428,1.428,1.428,1.428,1.428, 1.428 [(x7)] = 2.39835584666591-16 WRONG
1.428,1.428,1.428,1.428,1.428,1.428,1.428,1.428 [(x8)] = 0 CORRECT
To be clear, the above values come from a range of cells, and as I add another value, I am keeping the original value. So the values in the incorrect calculation of SD, are also in the correct ones, so it is not like there is an erroneous value being picked up.
I have also tried all the different versions of StDev (P/S...) and they all do exactly the same.
Does anyone know ehere I am going wrong?
Thanks
John