arraysgoogle-sheetsstockgoogle-financeautomatic-updates

Automatic filling of Stock price


I have a list of scrips of stock market. When I add a new scrip in a new row, I would like to automatically fill its current price using GoogleFinance function of google sheets.

In the attached google sheets, Column A contains the mnemonics of the scrip from which column B calculates the current price. When I add a new scrip, I copy the formula to the new row. How do I achieve it automatically?

enter image description here


Solution

  • GOOGLEFINANCE is already a type of ARRAYFORMULA so it is not supported under ARRAYFORMULA. this means that it is not possible to process your A column with one single formula. you have only two options how to do this:


    =IFERROR({GOOGLEFINANCE("NSE:"&A2);
              GOOGLEFINANCE("NSE:"&A3);
              GOOGLEFINANCE("NSE:"&A4);
              GOOGLEFINANCE("NSE:"&A5);
              GOOGLEFINANCE("NSE:"&A6);
              GOOGLEFINANCE("NSE:"&A7);
              GOOGLEFINANCE("NSE:"&A8);
              GOOGLEFINANCE("NSE:"&A9)})