vertical numbers (column) to horizonal (row)

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,559
Hi
I have numbers in one column as below, i want them in one cell if possible as following

10,20,30,40,50,60 OR 10, 20, 30, 40, 50, 60 (space after comma)

I am thinking to use copy-->paste special--> transpo, then user concatenate() function to join them with "," between them. Is that the best solution? Thank you so much


10
20
30
40
50
60

<tbody>
</tbody>
 
Last edited:

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,727
Office Version
2013
Platform
Windows
Are these values now in column A starting in row(2)?

And in what cell do you want these values entered into?

Details. We always need specific details
 

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,559
Thank you all for your reply. these values in column A

A1= 10
A2= 20
.
.
.
A6=60

and the result will be in B1
I am using excel 2013
Thank you again
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,655
Office Version
2010
Platform
Windows
I am using excel 2013
You cannot do what you asked for using built-in functions for your version of Excel; however, you can use a UDF (user defined function) to do it.
Code:
Function ConcatVert(Rng As Range) As String
  ConcatVert = Join(Application.Transpose(Rng), ", ")
End Function
HOW TO INSTALL UDFs
------------------------------------
If you are new to UDFs, they are easy to install and use. To install it, simply press ALT+F11 to go into the VB editor and, once there, click Insert/Module on its menu bar, then copy/paste the above code into the code window that just opened up. That's it.... you are done. You can now use ConcatVert just like it was a built-in Excel function. For example,

=ConcatVert(A1:A6)

If you are using XL2007 or above, make sure you save your file as an "Excel Macro-Enabled Workbook (*.xlsm) and answer the "do you want to enable macros" question as "yes" or "OK" (depending on the button label for your version of Excel) the next time you open your workbook.
 

Watch MrExcel Video

Forum statistics

Threads
1,089,766
Messages
5,410,307
Members
403,309
Latest member
chaithra

This Week's Hot Topics

Top