Bhanu
Bhanu

Reputation: 351

Splitting Google Form response (type = long answer) by line break and merging them with html break

I have a long answer type question in my Google Form the responses of which are uploaded on the website via CSV. The response comes like this: response

How can I add <br> in between of every line? Can we achieve both splitting and combining in one line?

Upvotes: 0

Views: 173

Answers (2)

player0
player0

Reputation: 1

JOIN has 50000 character limitation so:

=SUBSTITUTE(SUBSTITUTE(A1, CHAR(10), "<br>"), "<br><br>", "<br>")

0


=ARRAYFORMULA(REGEXREPLACE(QUERY(SUBSTITUTE(SUBSTITUTE(A1:A, CHAR(10), "<br>"), 
 "<br><br>", "<br>")&"<br>",,999^99), "<br> <br.*$", ""))

0

Upvotes: 1

Bhanu
Bhanu

Reputation: 351

Got it working usign this piece of formula: =textjoin("<br>",true,(transpose(split(join(char(10),A1:A4),char(10)))))

Upvotes: 0

Related Questions