+ Reply to Thread
Results 1 to 4 of 4

String into an array

  1. #1
    Registered User
    Join Date
    12-27-2010
    Location
    mississauga
    MS-Off Ver
    Excel 2003
    Posts
    16

    String into an array

    Looking for something that will look at a range. This range will contain 5 seperate words. I need the first two words and the last two words put into an array.

    Example, say I have this string in cell A1:

    ABC 123 TO XYZ 789

    How do I split that into an array of "ABC 123" and "XYZ 789".

    Please Login or Register  to view this content.

    Any help is greatly appreciated.

    Thanks
    Last edited by sekrah; 01-05-2011 at 08:08 PM.

  2. #2
    Registered User
    Join Date
    12-27-2010
    Location
    mississauga
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: String into an array

    Nevermind.. i'm such a dope.. solved it myself

    Please Login or Register  to view this content.
    pretty much gives me what I want. Unless there are better ways to do this.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: String into an array

    Hello sekrah,

    Here is one way...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: String into an array

    Another way:
    Please Login or Register  to view this content.
    Select B1:C1, paste

    =sekrah(A1)

    ... into the formula bar and confirm with Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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