cal*_*ala 6 currency google-finance google-sheets google-sheets-formula
我无法在特定日期停止googlefinance功能,无法使用"那个"特定汇率将货币从GBP转换为EUR.
这是我的公式: =Finance!B4*GOOGLEFINANCE("CURRENCY:GBPEUR","price",date(2017,15,11))
这是错误: When evaluating GOOGLEFINANCE, the query for the symbol: 'CURRENCY:GBPEUR' returned no data.
我已经在SO上查看了其他解决方案,但没有一个可用.我实际上已经从其他解决方案中为我的公式添加了"日期"和"价格".像这样: - 解决方案1
小智 12
首先,date(2017,15,11)意味着一年中第15个月的第11天,所以你需要交换月和日.
其次,历史数据查询,如
=GOOGLEFINANCE("CURRENCY:GBPEUR", "price", date(2017,11,15))
Run Code Online (Sandbox Code Playgroud)
返回一个包含列和标题的表.
Date Close
11/15/2017 23:58:00 1.1163
Run Code Online (Sandbox Code Playgroud)
从你使用这个公式的方式来看,我认为你只想要汇率.将函数包装index(..., 2, 2)在第二行中以获取第二个单元格.
=index(GOOGLEFINANCE("CURRENCY:GBPEUR", "price", date(2017,11,15)), 2, 2)
Run Code Online (Sandbox Code Playgroud)
Nil*_*oct 10
只是为了确保它是已知的,,今天的 Google 表格中没有使用该运算符,因此避免解析器错误的正确表达式是(在您的情况下):
=index(GOOGLEFINANCE("CURRENCY:GBPEUR"; "price"; date(2017;11;15)); 2; 2)
Run Code Online (Sandbox Code Playgroud)
小智 5
在 Google Sheets 中,我使用分号这样做:
=index(googlefinance("currency:USDNOK";"price";G11);2;2)
Run Code Online (Sandbox Code Playgroud)
G11 是我包含日期的单元格。它似乎为我做这项工作。我用 G11 中的今天日期进行了测试,得到了与今天汇率的简化版本相同的结果:
=googlefinance("currency:USDNOK")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6494 次 |
| 最近记录: |