Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sheets substitute carriage return

How may I replace the carriage return (new line) in a cell with a comma and a space (", ") using the command SUBSTITUTE or any other suitable command.

As an example I want to change left cell to look like the right cell. Thank you.

enter image description here

like image 375
Huá dé ní 華得尼 Avatar asked Dec 24 '22 11:12

Huá dé ní 華得尼


1 Answers

char(10) is for newline, so:

=SUBSTITUTE(A1,char(10),", ")
like image 160
Stefan Avatar answered Dec 27 '22 03:12

Stefan