简体   繁体   中英

how to use importrange, sort and transpose at same time

i have tow google sheet working codes. first for transpose data and sort and second code for import-range

i want to use these at same-time. i tried but its not working

First working Code

=transpose(  sort(
    transpose(A1:L1),
    9 * regexmatch(transpose(trim(A1:L1)), "(?i)wireless"), false,
    7 * regexmatch(transpose(trim(A1:L1)), "(?i)landline"), false,
    5 * regexmatch(transpose(trim(A1:L1)), "(?i)voip"), false,
    3 * regexmatch(transpose(trim(A1:L1)), "(?i)."), false
  )
)

Second working Code

IMPORTRANGE("https://docs.google.com/spreadsheets/d/1ShnTys0k8XIjBbp7pKbMYSCN1BYOkv86GKZfPtZzvsE/edit#gid=518187900", "sheet3!A1:L1")

sample sheet here https://docs.google.com/spreadsheets/d/1cMzlVm_9URD6GSdcpaNE1zaFPfmA5eNxqVjksQu4snQ/edit#gid=0

i want to use these at same-time. importrange from one workbook to another workbook and sort and transpose. i tried but its not working

You can try with LAMBDA in order to not make it so long. Try with:

=LAMBDA(imported,transpose(  sort(
    transpose(imported),
    9 * regexmatch(transpose(trim(imported)), "(?i)wireless"), false,
    7 * regexmatch(transpose(trim(imported)), "(?i)landline"), false,
    5 * regexmatch(transpose(trim(imported)), "(?i)voip"), false,
    3 * regexmatch(transpose(trim(imported)), "(?i)."), false
  )
))(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1ShnTys0k8XIjBbp7pKbMYSCN1BYOkv86GKZfPtZzvsE/edit#gid=518187900", "sheet3!A1:L1"))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM