标签: date google-sheets google-sheets-formula array-formulas google-sheets-importxml
我要从中导入45天的天气预报 https://weather.interia.com/long-term-forecast-chicago,cId,49700
日期列出如下:
1.11 2.11 3.11 4.11 5.11 6.11 7.11 8.11 9.11 10.11 11.11 12.11 13.11 14.11 15.11 16.11 17.11 18.11
如何将这些日期转换为实际日期? TO_DATE无效。感谢您的帮助。
TO_DATE
答案 0 :(得分:1)
尝试:
=ARRAYFORMULA(DATE(YEAR(TODAY()), INDEX(SPLIT(IMPORTXML( "https://weather.interia.com/long-term-forecast-chicago,cId,49700", "//span[@class='date']"), "."),,2), INDEX(SPLIT(IMPORTXML( "https://weather.interia.com/long-term-forecast-chicago,cId,49700", "//span[@class='date']"), "."),,1)))