Reputation: 29
Is it possible to include ranges of ranges in arrayformulas in Google Sheets?
For instance, the normal formula is:
=TEXTJOIN(" ",TRUE,A1:C1)
This joins the cells in range A1:C1 with a space
However, I want this to repeat over the entire column, so something like:
=ARRAYFORMULA(TEXTJOIN(" ",TRUE,(A1:A):(C1:C)))
Is this possible in google sheets?
Upvotes: 1
Views: 1468
Reputation: 1
use:
=ARRAYFORMULA(TRANSPOSE(QUERY(TRANSPOSE(A2:E);;9^9)))
or shorter:
=INDEX(FLATTEN(QUERY(TRANSPOSE(A2:E);;9^9)))
to skip empty cells do:
=INDEX(TRIM(FLATTEN(QUERY(TRANSPOSE(A2:E);;9^9))))
Upvotes: 2
Reputation: 27350
This should do the trick:
=arrayformula(A1:A & " " & B1:B & " " & C1:C)
Upvotes: 1