知道如何将表格1的表格转换为表格2吗?
测试表:https://docs.google.com/spreadsheets/d/1MS4VvpS03Rnd-TMWohTlAS0vhfa4JxsX1TBpqorsi7A/edit?usp=sharing
第1页
ID URL Price (from-to)
1 www.tseting.com 2-15
2 www.hello.com 1-10
第2页
[1]
url = www.tseting.com
price = 2-15
[2]
url = www.hello.com
price = 1-10
答案:
=ArrayFormula(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE({"[","url = ","price = ","dontsearchkeywords = "}&FILTER(Sheet1!A2:D,LEN(Sheet1!A2:A))&{"]"&CHAR(9),CHAR(9),CHAR(9),CHAR(9)&" "&CHAR(9)}),,4)),,ROWS(Sheet1!A2:D)),CHAR(9)))))
答案 0 :(得分:0)
你可以从这样的smth开始:
=TRANSPOSE(SPLIT(ArrayFormula(CONCATENATE(Sheet1!A2:E7&"@ ")),"@"))