Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Using Excel Formula, add text into a comma separated list

I have a formula that builds a connection string. I would like to add text from a column to a comma separated list in another column to the connection string column.

PORT DOMAINS CONNECTION STRING
80 a.domain.com,b.domain.com,c.domain a.domain.com:80,b.domain.com:80,c.domain:80
88 a.domain.com,b.domain.com,c.domain a.domain.com:88,b.domain.com:88,c.domain:88

I’ve searched google for excel formula to add text into a comma separated list but unable to find a formula that satisfies my criteria.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try using the following formulas:

enter image description here


=TEXTJOIN(",",,TEXTSPLIT(B2,,",")&":"&A2)

Or, Using SUBSTITUTE() & TEXTBEFORE() function:

enter image description here

=TEXTBEFORE(SUBSTITUTE(B2:B3&",",",",":"&A2:A3&","),",",-1)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading