Shivam Sahil
Shivam Sahil

Reputation: 4925

How to use import range to import content into one single cell instead of entire row?

I am using: = ImportRange("<key>","B2:B")

How I get it is:

enter image description here

But how I want it to be is:

enter image description here

into a single cell. Can anyone guide me to achieve this?

Upvotes: 2

Views: 419

Answers (1)

Tanaike
Tanaike

Reputation: 201553

How about using JOIN and/or TEXTJOIN?

Modified formula:

=JOIN(",",ImportRange("<key>","B2:B"))

or

=TEXTJOIN(",",TRUE,ImportRange("<key>","B2:B"))
  • By above modification, the retrieved values are put in one cell with the delimiter of ,.

References:

Upvotes: 2

Related Questions