Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert list of strings in line break to separate rows in Google Sheets

I need help to convert a string in a single cell in line breaks to separate rows. I've tried it copying the string in google sheet then paste in excel sheet it works but too tedious to do because there are many records.

Input:

cell A1 linebreak format without space

Apple

Banana

Grapes

Output:

A1=Apple A2=Banana A3=Grapes
like image 866
Enrico Mendiola Avatar asked Sep 19 '25 05:09

Enrico Mendiola


1 Answers

you can do:

=TRANSPOSE(SPLIT(B1, CHAR(10)))

0

like image 58
player0 Avatar answered Sep 21 '25 16:09

player0