I am using the GOOGLEFINANCE()
function in google sheets to get an exchange rate for expenses I am entering in for accounting.
The issue is that sometimes I get an #N/A
error with the message
When evaluating GOOGLEFINANCE, the query for the symbol: 'PENUSD' returned no data.
The confusing part is that sometimes, perhaps with a refresh of the page after 5 minutes some cells actually start working and others receive the error. I can't pin the problem down.
On another note, it is obvious that this is a poor way to do currency exchange because it is constantly calculating the rate for a past day. Is there a way to get historical exchange rates as a value, one time? I am thinking a script that for every new "date" entered in the date column calculates the exchange rate for that day and enters in the number in the cell next to it.
Is this possible? Are there any better solutions out there? thanks for the help