【发布时间】:2020-01-12 22:20:53
【问题描述】:
查看以下内容后:
On Google Spreadsheet how can you query 'GoogleFinance' for a past exchange rate?
随后:
Google Spreadsheet, finding the previous weekday
我尝试了以下方法:
=(GoogleFinance("CURRENCY:USDGBP", "price", WORKDAY("1/1/2020"+1,-1), WORKDAY("1/8/2020"+1,-1)))
不过,这也是返回周末值(不是必需的)
Date Close
1/1/2020 23:58:00 0.7548
1/2/2020 23:58:00 0.7606
1/3/2020 23:58:00 0.7644967
1/4/2020 23:58:00 0.7640879
1/5/2020 23:58:00 0.764575
1/6/2020 23:58:00 0.75925
1/7/2020 23:58:00 0.7625
1/8/2020 23:58:00 0.7631
我只想查询过去工作日的价格:
预期:
Date Close
1/1/2020 23:58:00 0.7548
1/2/2020 23:58:00 0.7606
1/3/2020 23:58:00 0.7644967
1/6/2020 23:58:00 0.75925
1/7/2020 23:58:00 0.7625
1/8/2020 23:58:00 0.7631
【问题讨论】:
标签: google-sheets