I'm sure this is an easy one.
Say I have a list of numbers in a column, how do I populate 1 cell with these values.
Heres an example
I'm sure this is an easy one.
Say I have a list of numbers in a column, how do I populate 1 cell with these values.
Heres an example
Last edited by highwyre237; 09-08-2009 at 10:33 AM.
Assuming your list is larger than your sample, you can download Morefunc.xll addin from here and use
=SUBSTITUTE(MCONCAT($A$1:$A$11," ")," ",",")
or you can apply this UDF:
and useFunction aconcat(a As Variant, Optional sep As String = "") As String ' Harlan Grove, Mar 2002 Dim y As Variant If TypeOf a Is Range Then For Each y In a.Cells aconcat = aconcat & y.Value & sep Next y ElseIf IsArray(a) Then For Each y In a aconcat = aconcat & y & sep Next y Else aconcat = aconcat & a & sep End If aconcat = Left(aconcat, Len(aconcat) - Len(sep)) End Function
=SUBSTITUTE(aconcat($A$1:$A$11," ")," ",",")
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
perfect! Thanks again!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks