I use GOOGLEFINANCE()
to query the historical USD/GBP exchange rate at a set of fixed dates.
This works fine, except sometimes GOOGLEFINANCE
returns #N/A
, for whatever temporary upstream reason. When this happens, my spreadsheet becomes filled with #REF
's, for all cells that depend on these exchange rates. The sheet is unreadable until the upstream data source is fixed. This can sometimes take hours.
This happens frequently and is especially annoying since I'm not using GOOGLEFINANCE
to retrieve time-varying data. I'm just using it as a static dataset of historical exchange rates, so theoretically I have no reason to refresh the data at all.
Is there a way to locally cache the historical exchange rates in my sheet, and to fall back on those values if GOOGLEFINANCE
returns #N/A
?
(Bonus points for automatically updating the cached values if GOOGLEFINANCE
changes its mind about the historical exchange rates.)