I have a google sheet with a dynamically changing number of worksheets within it. I\'d like to be able to automatically union all worksheets that included in a named range that
Solution without Google App Script.
Requirements:
Using your scrap sheet as an example, you have a list in column A.
In cell B1 put =arrayformula(if(len("'"&A1&"'!A2:C")<1,"",query(transpose(substitute(query(substitute(indirect("'"&A1&"'!A2:C")," ","_"),"Select * where Col1 is not null",counta(array_constrain(indirect("'"&A1&"'!A2:C"),99^99,1)))," ","\")),"select * where Col1 is not null",99^99)))
DRAG THIS FORMULA DOWN AS FAR AS YOU NEED SHEET NAMES YOU CAN OVERSHOOT
In cell C1 put =arrayformula(if(len(B:B)<1,"",split(B:B," ")))
In cell F1 put =arrayformula(query(transpose(substitute(query({C:E},"select * where Col1 is not null",counta(array_constrain(A:A,99^99,1)))," ","\")),"select *", 99^99))
In cell F2 put =arrayformula(substitute(transpose(split(transpose(split(F1," ")),"\")),"_"," "))
Now in cell F2 you will have your joined report dynamically updating as you add sheet names.