On Google Spreadsheet how can you query 'GoogleFinance' for a past exchange rate?

前端 未结 7 639
情话喂你
情话喂你 2020-12-24 00:33

I\'d like to know if it is possible to query a past exchange rate on Google Spreadsheet.

For example; using formula =GoogleFinance(\"CURRENCY:USDEUR\")

7条回答
  •  时光说笑
    2020-12-24 01:21

    Try,

    =GoogleFinance("usdeur","price",date(2013,12,1),date(2013,12,16))
    

    Make sure that the dates are as per your spreadsheet settings.

    Edit as comment, changed date for capturing single day data:-

    Only with headers:

    =INDEX(GoogleFinance("usdeur","price",date(2013,12,3),date(2013,12,4)),,2)
    

    without headers:

    =FILTER(INDEX(GoogleFinance("usdeur","price",date(2013,12,3),date(2013,12,4)),,2),INDEX(GoogleFinance("usdeur","price",date(2013,12,3),date(2013,12,4)),,2)<>"Close")
    

提交回复
热议问题