在 Google Sheet 中,将逗号替换为句点并添加 EUR
In Google Sheet, replace the comma with a period and add EUR
你能告诉我怎么做吗?
例1中,需要在数字前加一个€符号,并减少点后的位数
应显示为:€ 1.80
=ARRAY_CONSTRAIN(importXML("https://www.globalpetrolprices.com/Austria/", "//*[@id='graphPageLeft']/table[1]//tr"), 3 ^ 1, 4)
例2中,你需要把逗号改成句号,句号后留下zacks的数量
应显示为:€ 0.00
=QUERY(IMPORTXML("https://fuelo.eu/?convertto=eur", "//table[@class=('table table-striped table-hover tablesorter')]//tr"), "Select Col1, Col2, Col6, Col10 label Col1 'Countries', Col2 'Gasoline', Col6 'Diesel', Col10 'AutoGas'")
示例#1,尝试
=query(ARRAY_CONSTRAIN(importXML("https://www.globalpetrolprices.com/Austria/", "//*[@id='graphPageLeft']/table[1]//tr"), 3, 4),"FORMAT Col3 '€ 0.00', Col4 '€ 0.00'",1)
示例 #2
=query(query(QUERY(IMPORTXML("https://fuelo.eu/?convertto=eur", "//table[@class=('table table-striped table-hover tablesorter')]//tr"), "Select Col1, Col2/1000, Col6/1000, Col10/1000 "),"select * format Col2 '€ 0.000',Col3 '€ 0.000',Col4 '€ 0.000' ",1),"label Col1 'Countries', Col2 'Gasoline', Col3 'Diesel', Col4 'AutoGas'",1)
Mike Steelson 我把公式缩短了 查询
现在看起来像这样:
=QUERY(QUERY(IMPORTXML("https://fuelo.eu/?convertto=eur", "//table[@class=('table table-striped table-hover tablesorter')]//tr"),
"Select Col1, Col2/1000, Col6/1000, Col10/1000
format Col2/1000 '€ 0.00',Col6/1000 '€ 0.00',Col10/1000 '€ 0.00'"),
"Select Col1, Col2, Col3, Col4
label Col1 'Country', Col2 'Gasoline', Col3 'Diesel', Col4 'AutoGas'")
你能告诉我怎么做吗?
例1中,需要在数字前加一个€符号,并减少点后的位数
应显示为:€ 1.80
=ARRAY_CONSTRAIN(importXML("https://www.globalpetrolprices.com/Austria/", "//*[@id='graphPageLeft']/table[1]//tr"), 3 ^ 1, 4)
例2中,你需要把逗号改成句号,句号后留下zacks的数量 应显示为:€ 0.00
=QUERY(IMPORTXML("https://fuelo.eu/?convertto=eur", "//table[@class=('table table-striped table-hover tablesorter')]//tr"), "Select Col1, Col2, Col6, Col10 label Col1 'Countries', Col2 'Gasoline', Col6 'Diesel', Col10 'AutoGas'")
示例#1,尝试
=query(ARRAY_CONSTRAIN(importXML("https://www.globalpetrolprices.com/Austria/", "//*[@id='graphPageLeft']/table[1]//tr"), 3, 4),"FORMAT Col3 '€ 0.00', Col4 '€ 0.00'",1)
示例 #2
=query(query(QUERY(IMPORTXML("https://fuelo.eu/?convertto=eur", "//table[@class=('table table-striped table-hover tablesorter')]//tr"), "Select Col1, Col2/1000, Col6/1000, Col10/1000 "),"select * format Col2 '€ 0.000',Col3 '€ 0.000',Col4 '€ 0.000' ",1),"label Col1 'Countries', Col2 'Gasoline', Col3 'Diesel', Col4 'AutoGas'",1)
Mike Steelson 我把公式缩短了 查询 现在看起来像这样:
=QUERY(QUERY(IMPORTXML("https://fuelo.eu/?convertto=eur", "//table[@class=('table table-striped table-hover tablesorter')]//tr"),
"Select Col1, Col2/1000, Col6/1000, Col10/1000
format Col2/1000 '€ 0.00',Col6/1000 '€ 0.00',Col10/1000 '€ 0.00'"),
"Select Col1, Col2, Col3, Col4
label Col1 'Country', Col2 'Gasoline', Col3 'Diesel', Col4 'AutoGas'")