+ Reply to Thread
Results 1 to 8 of 8

Splitting a string of numbers and letters in to multiple rows

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Splitting a string of numbers and letters in to multiple rows

    I wanted to know if anyone could help me, I have a column of data that I need to split up in to multiple columns. I know how to do this with text to columns but I am trying to save my self a little time with maintaining my database. and I thought I might be able to do this with Visual basic.

    What I have is a string that looks like this:

    235/50R17 99Y

    I also have other strings that look like this:

    325/25R20 101W

    What I would like is some way to automate splitting this up into the separate columns like this:

    235 50 17 99 Y
    325 25 20 101 W

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Splitting a string of numbers and letters in to multiple rows

    you'll always have 5 columns to create, right? Where are your data? In column A? Where do you want your new data? Will it alsways be in the same format, I mean nnn/nnLnn nnnL where n is for number and L is letter?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Splitting a string of numbers and letters in to multiple rows

    It will always be 5 columns, the R won't be used and it will always be in the same format however the PITA is that the last number set varies in the number format between 2 and 3 numbers:

    nnn nn nn nn l or nnn nn nn nnn l


    and the data will be aquired from column "a" and will be put in to "b c d e f"
    Last edited by muddbog; 02-22-2014 at 04:39 PM.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Splitting a string of numbers and letters in to multiple rows

    See at attached workbook.
    The following macro is part of it.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Splitting a string of numbers and letters in to multiple rows

    does it matter that I'm on a Mac, because I get an error saying unable to create object

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Splitting a string of numbers and letters in to multiple rows

    HGi muddbog,

    Here's another option:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Registered User
    Join Date
    02-29-2012
    Location
    Germany
    MS-Off Ver
    Excel 2011 MAC
    Posts
    77

    Re: Splitting a string of numbers and letters in to multiple rows

    Quote Originally Posted by xladept View Post
    HGi muddbog,

    Here's another option:

    Please Login or Register  to view this content.
    Perfect! Works Exactly as I wanted! Major Kudos!

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Splitting a string of numbers and letters in to multiple rows

    Hi muddbog,

    Glad you like it! And, thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Splitting a cell between letters and numbers.
    By matty88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 07:47 AM
  2. [SOLVED] Splitting a string of numbers into separate cells: where to even begin?
    By confused_teacher in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-03-2013, 02:33 PM
  3. How to separate numbers and letters in string
    By rwgrietveld in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2013, 04:28 PM
  4. Replies: 6
    Last Post: 03-18-2013, 05:30 PM
  5. [SOLVED] Splitting string into letters and numbers
    By Foss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2005, 07:06 AM

Tags for this Thread

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