Fill ArrayFormula with dynamic IMPORTRANGE

前端 未结 1 1576
再見小時候
再見小時候 2021-01-27 12:36

I have a Google Sheets that collects marks of students from various sheets to create a complete mark sheet. Each teacher enters marks in his/her own spreadsheet with paper numbe

相关标签:
1条回答
  • 2021-01-27 13:00

    As the importrange function has the ability to output arrays, it can't be iterated across an array.

    To combine your formula, use this formula:

    ="=sort(ARRAYFORMULA({"&JOIN(";",ArrayFormula("IMPORTRANGE("""&VLOOKUP(FILTER(G2:G20,G2:G20<>""),Sheet3!$A$2:$B,2,0)&""","""&G1&"!A2:B"")"))&"}),1,True,2,True)"
    

    then you could paste the result in G23 manually or use script to paste formula

    0 讨论(0)
提交回复
热议问题