Text to Columns

longbow2000

Board Regular
Joined
May 5, 2004
Messages
59
Office Version
  1. 365
Platform
  1. Windows
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

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
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
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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