Some currency pairs have no historical data for certain days.
Compare =GOOGLEFINANCE("CURRENCY:EURNOK", "close", DATE(2016,1,1), DATE(2016,1,12)
:
Date Close
1/1/2016 23:58:00 9.6248922
1/2/2016 23:58:00 9.632922114
1/3/2016 23:58:00 9.579957264
1/4/2016 23:58:00 9.609146435
1/5/2016 23:58:00 9.573877808
1/6/2016 23:58:00 9.639368875
1/7/2016 23:58:00 9.707103569
1/8/2016 23:58:00 9.673324479
1/9/2016 23:58:00 9.702379872
1/10/2016 23:58:00 9.702721875
1/11/2016 23:58:00 9.705679083
and =GOOGLEFINANCE("CURRENCY:EURRUB", "close", DATE(2016,1,1), DATE(2016,1,12)
:
Date Close
1/1/2016 23:58:00 79.44402768
1/4/2016 23:58:00 79.14048175
1/5/2016 23:58:00 80.0452446
1/6/2016 23:58:00 80.3761125
1/7/2016 23:58:00 81.70830185
1/8/2016 23:58:00 81.70680013
1/11/2016 23:58:00 82.50853122
So, =INDEX(GOOGLEFINANCE("CURRENCY:EURRUB", "close", DATE(2016,1,1)), 2, 2)
gives
79.44402768
But =INDEX(GOOGLEFINANCE("CURRENCY:EURRUB", "close", DATE(2016,1,2)), 2, 2)
gives
#N/A
Therefore, when working with currency pairs that have no exchange rates for weekends/holidays, the following formula may be used for getting the exchange rate for the first following working day:
=INDEX(GOOGLEFINANCE("CURRENCY:EURRUB", "close", DATE(2016,1,2), 4), 2, 2)