Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
116 views
in Technique[技术] by (71.8m points)

How to add Sort Function with Query Function In Google Sheets?

Please help me how can I add SORT function in this. =QUERY({IMPORTRANGE("https://docs.google.com/spreadsheets/d/1OmVZFtG9p510jmTI23FvIzz8T5urZUAj7VYce__Cg_Y/edit#gid=0" , "Sheet1!A2:J");IMPORTRANGE("https://docs.google.com/spreadsheets/d/1yGh_DaXD7A4lUY47Vk-CdRAAJsZ0fnPxDanH6qMiYTI/edit#gid=0" ,"Sheet1!A2:J");IMPORTRANGE("https://docs.google.com/spreadsheets/d/1kKHJk3LmHYsPTAAtxhoUBkF-JykyEiMUI-ioSQYEODQ/edit#gid=0" , "Sheet1!A2:J")},"select * where Col1 is not null or Col2 is not null or Col3 is not null or Col4 is not null or Col5 is not null or Col6 is not null or Col6 is not null or Col7 is not null or Col8 is not null or Col9 is not null or Col10 is not null")

question from:https://stackoverflow.com/questions/65920523/how-to-add-sort-function-with-query-function-in-google-sheets

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

try:

=SORT(QUERY({
 IMPORTRANGE("1OmVZFtG9p510jmTI23FvIzz8T5urZUAj7VYce__Cg_Y", "Sheet1!A2:J");
 IMPORTRANGE("1yGh_DaXD7A4lUY47Vk-CdRAAJsZ0fnPxDanH6qMiYTI", "Sheet1!A2:J");
 IMPORTRANGE("1kKHJk3LmHYsPTAAtxhoUBkF-JykyEiMUI-ioSQYEODQ", "Sheet1!A2:J")},
 "where Col1 is not null 
     or Col2 is not null 
     or Col3 is not null 
     or Col4 is not null 
     or Col5 is not null 
     or Col6 is not null 
     or Col6 is not null 
     or Col7 is not null 
     or Col8 is not null 
     or Col9 is not null 
     or Col10 is not null"))

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...