vertical numbers (column) to horizonal (row)

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
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


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]10[/TD]
[/TR]
[TR]
[TD]20[/TD]
[/TR]
[TR]
[TD]30[/TD]
[/TR]
[TR]
[TD]40[/TD]
[/TR]
[TR]
[TD]50[/TD]
[/TR]
[TR]
[TD]60[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
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
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top