I'm looking to append the current share price of a stock to the end of a period with changing durations.

My current formula for the historical prices is (where cell B3 is a duration of days to retrieve): =GOOGLEFINANCE("AAPL","price",TODAY()-B3,TODAY())

Using the below formulae as shown below returns the current trading price in the same format as the historical prices:

Combining the above formulas results in a "#N/A" error:

How can I append today's current trading price to the retrieved historical range when that range is dynamic?

1 Answer 1


The formula is failing because you are giving arrayformula() two expressions when it only expects one. One of the { array expressions } is also superfluous. It is probably easier to do this with vstack(), like this:

  googlefinance("AAPL", "price", today() - B3, today()), 
  { today(), googlefinance("AAPL", "price") } 

See vstack().


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.