在 importhtml 函数中遇到困难,使用 order by 和 select col 函数,但 header 在 google 工作表中导入时也受到影响
Facing a difficulty in importhtml function, using order by and select col function but header is also being affected while importing in google sheets
我正在使用这个功能
=QUERY(INDEX(SUBSTITUTE(IMPORTHTML (I2 & "?refresh=" & I6,I3,I4), "*", )), "SELECT Col1, Col2, Col3, Col4 ORDER BY Col1 ASC")
这是返回数据,headers 在 table 之间。
此外,我们是否可以使用 offset 来完全避免 headers,如果是的话,正确的语法是什么
Link 导入页面
https://www.ipowatch.in/p/ipo-subscription-numbers-status.html
尝试:
=QUERY(INDEX(SUBSTITUTE({
IMPORTHTML(I2&"?refresh="&I6, I3, I4),
IMPORTHTML(I2&"?refresh="&I6, I3, I5)}, "*", )),
"select Col1,Col2,Col3,Col4,Col6,Col7 order by Col1", 1)
demo sheet
我正在使用这个功能
=QUERY(INDEX(SUBSTITUTE(IMPORTHTML (I2 & "?refresh=" & I6,I3,I4), "*", )), "SELECT Col1, Col2, Col3, Col4 ORDER BY Col1 ASC")
这是返回数据,headers 在 table 之间。
此外,我们是否可以使用 offset 来完全避免 headers,如果是的话,正确的语法是什么 Link 导入页面
https://www.ipowatch.in/p/ipo-subscription-numbers-status.html
尝试:
=QUERY(INDEX(SUBSTITUTE({
IMPORTHTML(I2&"?refresh="&I6, I3, I4),
IMPORTHTML(I2&"?refresh="&I6, I3, I5)}, "*", )),
"select Col1,Col2,Col3,Col4,Col6,Col7 order by Col1", 1)