Text to Columns

longbow2000

New Member
Joined
May 5, 2004
Messages
46
Good Day

How do convert text to columns IF the imported text will be more than 256 columns when the converted?

Or is there another approach to my desired end result, as described below?

All of the imported text is in Cell A1 as a singe row, i.e. (45,23,4,5,…etc). I then convert it via text to columns, then copy / paste special as Transposed text so that all the data is in rows. This works 100% if the text to column data in less than 256.

Thanx in advance
Ivan
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

wongm003

Board Regular
Joined
Aug 8, 2005
Messages
237
If the data is comma delimited you could use something like...

Code:
Public Sub my_transpose()
on error resume next

    'change to delimiter you are using....
    strDelim = ","
    varItms = Split(Cells(1, 1).Value, strDelim, -1, vbTextCompare)

    For x = 0 To UBound(varItms)
        Cells(x + 1, 1).Value = varItms(x)
    Next x

End Sub
 

Forum statistics

Threads
1,136,926
Messages
5,678,606
Members
419,775
Latest member
joh93

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
Top