Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

google finance stock prices

=GOOGLEFINANCE("ABC","all",today()-30,today(),Daily)

This returns daily stock price info for ABC for the last 30 days. Is there a way to stagger the output so it only returns every 2nd day like:

Jan 24 price
Jan 26 price
Jan 28 price

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can use the CHOOSEROWS function:

=LET(data,GOOGLEFINANCE("ABC","all",today()-30,today(),Daily),
     CHOOSEROWS(data,SEQUENCE(ROWS(data)/2,1,1,2)))

You could also use QUERY with the skipping clause:

=QUERY(GOOGLEFINANCE("ABC","all",today()-30,today(),Daily),"skipping 2")
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading