Two Steps at Once...

S

Steve

I have a column of stock prices in column B with associated dates in column
A.
Let's call it dates in A1:A100 and prices in B1:B100.

In cells A101:A200 I repeat the same dates
In cells B101:B200 I fill down the formula =B2/B1 so those cells show the
daily change in the stock prices.

I can now calculate the STDEV of those daily price changes =STDEV(B101:B200)

How can I do this in one step, direct from a column of stock prices to the
STDEV of the daily price changes?

Thanks,

Steve
 
B

Bob Phillips

=STDEV(N(B2:B100/B1:B99))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

I am assuming here that you don't copy the formula to B200, that would be
B101/B100

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top