Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

ArrayFormula with TextJoin of a row of columns

I have a table as follows:

data table

I would like to use the following formula =SPLIT(TEXTJOIN(",",TRUE, Data!B2:C2),",") with ArrayFormula, but I am not sure how I should adapt B2:C2 to work with the function.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Expected output (result of dragging formula down):
expected output

>Solution :

Use the Ampersand Operator (&) Instead

The function TEXTJOIN() does not work with ARRAYFORMULA(). Instead, you may use the Ampersand Operator (&) expression to join the texts together. In your case, you may use the following:

=ARRAYFORMULA(split(arrayformula(B2:B7 & "," & C2:C7),","))

Sample Output

Based from the output below, your desired result was met.

Output

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading