0

我正在尝试使用ImportXMLXPath 代码来获取货币汇率,但此代码不起作用。

=IMPORTXML("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"; "/gesmes:Envelope/Cube/Cube/Cube[@currency='USD']@rate")
4

1 回答 1

2
=REGEXEXTRACT(QUERY(
 IMPORTDATA("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"); 
 "where Col1 contains 'USD'"; 0); "rate='(.*)'")

0

0

于 2019-05-20T16:07:05.697 回答