Formula to Join Cells that have Content (with Line Break)
Looking to see if there is a formula that would allow me to join cells into separate lines ONLY for cells that have content. Essentially I want to remove blanks somehow so it is just seamless data.
In my example, when I use CHAR(10). It joins the cells, but leaves blank lines if nothing was filled in for a cell.
Im currently using =JOIN(A4:A61, CHAR(10))
Thanks in advance!!
Best Answer
-
Hi @Cabooga,
Use a JOIN COLLECT instead:
=JOIN(COLLECT(A4:A61, A4:A61, <>""), CHAR(10))
This should eliminate the blank spaces
Sample (using slightly less rows!):
Hope this helps, but if you've any problems/questions then let us know!
Answers
-
Hi @Cabooga,
Use a JOIN COLLECT instead:
=JOIN(COLLECT(A4:A61, A4:A61, <>""), CHAR(10))
This should eliminate the blank spaces
Sample (using slightly less rows!):
Hope this helps, but if you've any problems/questions then let us know!
-
Oh my word, you are magic! That worked perfectly. Thank you! 🎉
-
Hi @Cabooga,
I think if you add COLLECT to your formula, it should work:
=JOIN(COLLECT(A4:A61, A4:A61, ISTEXT(@cell)))
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!