如何使用 IMPORTXML 导入货币数据?
How to import money data using IMPORTXML?
我正在尝试使用 ImportXML
和 XPath 代码来获取货币汇率,但此代码不起作用。
=IMPORTXML("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"; "/gesmes:Envelope/Cube/Cube/Cube[@currency='USD']@rate")
=REGEXEXTRACT(QUERY(
IMPORTDATA("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml");
"where Col1 contains 'USD'"; 0); "rate='(.*)'")
我正在尝试使用 ImportXML
和 XPath 代码来获取货币汇率,但此代码不起作用。
=IMPORTXML("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"; "/gesmes:Envelope/Cube/Cube/Cube[@currency='USD']@rate")
=REGEXEXTRACT(QUERY(
IMPORTDATA("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml");
"where Col1 contains 'USD'"; 0); "rate='(.*)'")