1

I am trying to make SPARKLINE in Google Sheet with this formula:

=SPARKLINE(INDEX(GOOGLEFINANCE("AAPL", "close", WORKDAY(TODAY(), -100), TODAY()), , 2))

It shows a perfect line chart, but it fetches data till yesterday's date. I want today's live price append to this data. I can get today price with this formula:

=GOOGLEFINANCE("AAPL","price")

For Example,

e.g.

But I don't know how to add today's price at the end of the old historical price so I can generate live SPARKLINE.

Please suggest a solution or you have any different approach to solve this problem.

Thanks

1 Answers1

1

Try this

=SPARKLINE({INDEX(GOOGLEFINANCE("AAPL", "close", WORKDAY(TODAY(), -100), TODAY()));today(),GOOGLEFINANCE("AAPL","price")})
Mike Steelson
  • 14,650
  • 2
  • 5
  • 20