vertical numbers (column) to horizonal (row)

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,492
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:

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
16,077
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,492
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,431
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.
 

Forum statistics

Threads
1,078,462
Messages
5,340,446
Members
399,375
Latest member
alwayssunny

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top