I trying to get the stock price on ceratain dates that are in a colunm A from A2 to A5. The numbers of rows is based on a formula. So I might have dates from A2 to A50. The formula to get the stock price that I am using is index(GOOGLEFINANCE("AAPL","price", datevalue(A2) ) , 2,2) I can copy and paste the formula in column B but I want this to be automated. I am trying to use the ARRAYFORMULA for it but not getting the desired results.
I used this and I am sure there is some syntax error ARRAYFORMULA((A2:A5)(index(GOOGLEFINANCE("AAPL","price", datevalue(A2) ) , 2,2))) I am getting formula parse error. Can someone please help correcting it