Reputation: 351
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:
How can I add <br>
in between of every line?
Can we achieve both splitting and combining in one line?
Upvotes: 0
Views: 173
Reputation: 1
JOIN
has 50000 character limitation so:
=SUBSTITUTE(SUBSTITUTE(A1, CHAR(10), "<br>"), "<br><br>", "<br>")
=ARRAYFORMULA(REGEXREPLACE(QUERY(SUBSTITUTE(SUBSTITUTE(A1:A, CHAR(10), "<br>"),
"<br><br>", "<br>")&"<br>",,999^99), "<br> <br.*$", ""))
Upvotes: 1
Reputation: 351
Got it working usign this piece of formula:
=textjoin("<br>",true,(transpose(split(join(char(10),A1:A4),char(10)))))
Upvotes: 0