+ Reply to Thread
Results 1 to 4 of 4

Text To Column Based on Start and End Position

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    somewhere,england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Text To Column Based on Start and End Position

    Hello,
    I tried searching thru the forum but I couldn't find an answer to this question:

    I have a string of text that I would like to put into columns based on the start and end position. For example, this is my text:

    123ABC456DEF

    Column 1 would be from position 0 - 4
    Column 2 would be from position 5 - 6
    Column 3 would be from 7 - 10

    123A | BC | 456DEF

    Is this possible?

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Text To Column Based on Start and End Position

    Possible, yes. The unanswered question however is where does the text come from. Here is code where I assumed the text was in "E1".
    Also, your post is erroneous. You stated column 3 would be from 7 - 10 but your example is actually 7 - 12. I assumed you meant 7 - 12
    Please Login or Register  to view this content.
    I also assumed you wanted to do this via VBA. This is perfectly possible via formula.

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    somewhere,england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Text To Column Based on Start and End Position

    Thanks! Would it be possible then to loop it for multiple rows of data? the text would be in A1 - A3

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Text To Column Based on Start and End Position

    Maybe something like this (assumes column A is the data column)

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 04-10-2013 at 07:13 PM. Reason: typo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1