Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

How to take contents from a COLUMN of data and place as an array in a SINGLE CELL?

Experts:

My data in Excel 2010 looks like this in a single column:

861.32,
861.22,
861.21,
860.5,
860.4,
860.2,
860.1,
860.0,
854.09,
854.06,
854.05,

I need it to be transposed INTO a SINGEL CELL and have it look like this:

861.32, 861.22, 861.21, 860.5, 860.4, 860.2, 860.1, 860.0, 854.09, 854.06, 854.05,

There are about 1300 codes in the list...FYI....

Thanks
0
MIKE
Asked:
MIKE
  • 2
1 Solution
 
NorieCommented:
Assuming the data is in column A starting in A1.

Put this in B2:

=A1 & A2

and this in B3

=B2&A3

then copy down from B3.

You can quickly do that by double clicking the bottom right of the cell (B3).
0
 
MIKESoftware Solutions ConsultantAuthor Commented:
This will work for what I'm trying to do....THANKS!
0
 
NorieCommented:
Were you looking for code?
Dim arrVals
Dim strVals

arrVals = Range("A1", Range("A" & Rows.Count).End(xlUp)).Value

strVals = Join(Application.Transpose(arrVals), "")

Range("B1") = strVals

Open in new window

By the way I just noticed there might be an extra comma at the end.

Do you want to keep that?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now