kouki
kouki

Reputation: 37

Google Sheets - Concatenating Multiple lists across sheets

I am interested in taking the values from 1 list in a sheet and concatenating it with the values from another list in a different sheet in Google Sheets. For example, if my lists are:

Sheet A

Sheet B

I would want to generate on Sheet C this...

Is this possible? I tried doing this with ARRAYFORMULA, but I just end up outputting something like this: Apple QuarterHalfWhole

Upvotes: 1

Views: 95

Answers (1)

kishkin
kishkin

Reputation: 5325

Here you go:

=ARRAYFORMULA(FLATTEN(A1:A2 & " " & TRANSPOSE(B1:B3)))
  • A1:A2 and B1:B3 indeed could be from a different sheet (tab or document (IMPORTRANGE will be used for that case))
  • FLATTEN is undocumented function in Google Sheets, which will make a 2D-range into a column. I learned about it recently from @MattKing here on SO.

enter image description here

Upvotes: 3

Related Questions