standard deviation

deuce

Active Member
Joined
Oct 6, 2006
Messages
346
Office Version
  1. 2007
hi, is there any way in excel to calculate a standard deviation accurately given only the start and end values without devoting cells to layout the entire range of values? For example numbers 1-5 laid out 1,2,3,4,5 would have a standard deviation of 1.5811, however what I want to do is create a formula which only requires me to input the start and end values of the range. i.e. 1 and 5 with the formula doing the rest of the calculation.

is this possible in excel?

thanks and regards.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Maybe either or these, both of which must be confirmed with Ctrl+Shift+Enter.

=STDEV(ROW(INDIRECT("1:5")))

=STDEV(ROW(INDEX(A:A, 1):INDEX(A:A, 5)))
 
Upvote 0
hi, can you tell me what changes to make in the formulas when I select the cells that contain those values. In other words currently i have to select the entire range of cells containing values then apply the stdev (column) formula. The values are in decimal format like eg. x.xxxx.
 
Last edited:
Upvote 0
Those cells are no longer needed.
 
Upvote 0
hi, can you tell me what changes to make in the formulas when I select the cells that contain those values. In other words currently i have to select the entire range of cells containing values then apply the stdev (column) formula. The values are in decimal format like eg. x.xxxx.

If you have a range reference, say A:A, and you specify a start row and an end row, you can have something like:

=STDEV(INDEX(A:A,E1):INDEX(A:A,F1))

where E1 houses a start row and F1 an end row.

If you want something like:

K2: 5
L2:12

meaning that you want calculate standard deviation reagrding the set

5,6,7,8,9,10,11,12

then, control+shift+enter, not just enter:

=STDEV(ROW(INDIRECT(K2&":"&L2)))
 
Upvote 0
hi guys, sorry i dozed off while waiting for a response.

=STDEV(ROW(INDIRECT(K2&":"&L2)))

this formula works but for whole numbers only, what about if i have numbers with 5 numbers behind the decimal place?
 
Upvote 0
hi guys, sorry i dozed off while waiting for a response.

=STDEV(ROW(INDIRECT(K2&":"&L2)))

this formula works but for whole numbers only, what about if i have numbers with 5 numbers behind the decimal place?

The ROW construct cannot generate that for you. In fact, nothing can: How many values do you think we have between just 5 and 6?

I believe you need to explain yourself why you require all that...
 
Upvote 0
The numbers in the data set all have 5 figures behind the decimal place, i cannot do anything about that. eg. 1.23456.
 
Last edited:
Upvote 0
The numbers in the data set all have 5 figures behind the decimal place, i cannot do anything about that. eg. 1.23456.

Deuce

It is just a math issue...

K2: 5
L2: 6

would mean

K3:

=K2*10000

L3:

=L2*10000

=SETDEV(ROW(INDIRECT(K3&":"&L3))/10000)

Such an equation would not be possibly for every arbitrary pair. BTW, you didn't yet tell why you require all this...
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top