I'm looking to assign an array over currency conversion rates from the google finance function. I copied this formula above and adapted it to my spreadsheet, but I keep getting the following error message:
"Error: Did not find value '4/8/2020' in VLOOKUP evaluation."
'4/8/2020'
is the date. I don't know enough about VLOOKUP to understand the problem.
=ARRAYFORMULA(IF(B2:B<>"", IF(G2:G=H1, C2:C, C2:C*VLOOKUP(TO_TEXT(B2:B), TO_TEXT(QUERY(GOOGLEFINANCE("CURRENCY:"&G2:G&H1, "price", MIN(B:B), MAX(B:B)+1), "offset 1 format Col1'mm/dd/yyyy'", 0)), 2, 0)),""))
I'm looking to see the expense I logged in Column C. If it is in the same currency I'm converting, then I return the original expense, otherwise I'll multiply the expense by the conversion rate to get a result.
https://docs.google.com/spreadsheets/d/1HNZvza9jR8gYk3QlVMgx2nfN4B40oDhyOYVthwQ4HzE/edit?usp=sharing
Here is a link to the spreadsheet with the formula, so it's easier to understand. I appreciate any and all help!
Best, Galeano