I currently have a daily report at work where I have to obtain the standard deviation of the last cell and its 364 previous observations. However, I would like to find a way to do it by VBA.
I would really appreciate any advice you could give me.
So far, I have tried the following code (I am new to VBA so please excuse me if it is a really easy question):
Sheets("Hoja1").Select
lastvalue=Range("A1").End(xlDown).Select
Cells (2,4)=Application.WorksheetFunction.StDev(Application.WorksheetFunction.Offset(lastvalue,0,0,-365))