Combine column into one cell

I need to take a column of values and convert them into one cell with commas separating them.

Example:
Take these values > Cells A1- A5
1-WI-V-5012AA
1-WI-V-5012AB
1-WI-V-5012AC
1-WI-V-5012AD
1-WI-V-5012BA
...and convert (combine) to this > in cell B1
1-WI-V-5012AA, 1-WI-V-5012AB, 1-WI-V-5012AC, 1-WI-V-5012AD, 1-WI-V-5012BA
ssblueAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Travis MartinezStorage EngineerCommented:
This works with office 365 but you can use the =TEXTJOIN

55
Name
37
AnotherName

All in A1.  In B1 insert =TEXTJOIN(",",TRUE,A:A)
ssblueAuthor Commented:
I get   #NAME?  and I am using Windows 10
Travis MartinezStorage EngineerCommented:
What version of Office are you using?  "File -> Account".  Product Information section.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

ssblueAuthor Commented:
Professional Plus 2013
Martin LissOlder than dirtCommented:
Put this UDF (User Defined Function) in a code module and in column 'B' put =ConcatComma(A1:A5) or any range you want.

Function ConcatComma(r As Range) As String
Dim cel As Range

For Each cel In r
    ConcatComma = ConcatComma & cel & ", "
Next
ConcatComma = Left$(ConcatComma, Len(ConcatComma) - 2)
End Function

Open in new window

29122234.xlsm
Martin LissOlder than dirtCommented:
I uploaded the wrong workbook. I've now corrected that.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ssblueAuthor Commented:
Thanks for the help and examples.
Martin LissOlder than dirtCommented:
You’re welcome and I’m glad I was able to help.

If you expand the “Full Biography” section of my profile you’ll find links to some articles I’ve written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange Most Valuable Expert (MVE) 2015, 2017
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017
              Experts Exchange Top Expert VBA (current)
ssblueAuthor Commented:
Thank you!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.