Thanks for your reply.
Let me to describe the purpose for this calculation roughly.
Column B is for the price of stock.
Column C & D are the slope and interception of linear regression from Column B.
The final result which I need is the standard deviation on the difference between stock price and the implied price from linear regression by each 250 historical data(moving window)
Hopefully, it's clear for you to understand this calculation. Thanks