Link to home
Start Free TrialLog in
Avatar of Marcus Aurelius
Marcus AureliusFlag for United States of America

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Norie
Norie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Marcus Aurelius

ASKER

This will work for what I'm trying to do....THANKS!
Avatar of Norie
Norie

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?