Hello, I have a question regarding standard deviation and log change. I have a large number of figures in Column A (more than 100,000). I would like to calculate the standard deviation of the log change for the 20 most recent entries (most recent entries entered at bottom of spreadsheet).
The log change includes the current figure in Column A and the figure immediately preceding the current figure. For example, log change in cell B3 would be LN(A3/A2).
What I want to do is avoid having the LN function in 100’s of thousands of cells, I would prefer to get the standard deviation of the 20 most recent LN functions and have that result displayed in one cell.
Is this possible? If so, I would greatly appreciate your input! Thanks, Mark
<table class="MsoNormalTable" style="width: 151pt; margin-left: 4.65pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="201"> <tbody><tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> Column A
</td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> Column B (log change)
</td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap">
</td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> </td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> </td> </tr> </tbody></table>
The log change includes the current figure in Column A and the figure immediately preceding the current figure. For example, log change in cell B3 would be LN(A3/A2).
What I want to do is avoid having the LN function in 100’s of thousands of cells, I would prefer to get the standard deviation of the 20 most recent LN functions and have that result displayed in one cell.
Is this possible? If so, I would greatly appreciate your input! Thanks, Mark
<table class="MsoNormalTable" style="width: 151pt; margin-left: 4.65pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="201"> <tbody><tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap"> Column A
</td> <td style="width: 82.75pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="110" nowrap="nowrap"> Column B (log change)
</td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap">
161.57
</td> </tr> <tr style="height: 15pt;"> <td style="width: 68.25pt; padding: 0in 5.4pt; height: 15pt;" valign="bottom" width="91" nowrap="nowrap">
163.30
0.0107
163.02
-0.0017
157.47
-0.0346
158.99
0.0096
156.98
-0.0127
154.48
-0.0161
156.67
0.0141
158.01
0.0085
158.71
0.0044
161.28
0.0161
157.10
-0.0263
154.54
-0.0164
155.65
0.0072
162.84
0.0452
155.04
-0.0491
150.56
-0.0293
152.15
0.0105
156.83
0.0303
158.32
0.0095
158.00
-0.0020
158.10
0.0006
159.00
0.0057
157.75
-0.0079
158.40
0.0041
161.57
0.0198
163.30
0.0107
163.02
-0.0017
157.47
-0.0346
158.99
0.0096
156.98
-0.0127
154.48
-0.0161
156.67
0.0141
158.01
0.0085
158.71
0.0044
161.28
0.0161
157.10
-0.0263
154.54
-0.0164
155.65
0.0072
162.84
0.0452
155.04
-0.0491
150.56
-0.0293
152.15
0.0105
156.83
0.0303
158.32
0.0095
158.00
-0.0020
158.10
0.0006
159.00
0.0057
157.75
-0.0079
158.40
0.0041
161.57
0.0198
163.30
0.0107
163.02
-0.0017
157.47
-0.0346
158.99
0.0096