+ Reply to Thread
Results 1 to 9 of 9

Split a string in a cell and copy splitted characters to adjacent cells

  1. #1
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Split a string in a cell and copy splitted characters to adjacent cells

    Hello everybody,

    I´m trying to figure out how to split a string and copy the broken down characters to adjacent cells. Probably there is also a way to achieve this through formulas, but a solution based on VBA would come more in handy...Any ideas on how to program this?

    Thanks in Advance!

    17.07.png

  2. #2
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    ...forgot to mention, the string's syntax is always as in the example above: 2 to 3 numbers and just beside to the right 2 letters

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    Hello
    Try this code (just change the range to suit)
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    Just in case you may like these two short formulas
    Enter in B2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter in C2 and copy across to D2 and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    2
    61AA
    61
    A A
    3
    63AA
    63
    A A
    4
    138AA
    138
    A A
    5
    139BA
    139
    B A
    6
    144AA
    144
    A A
    7
    62AA
    62
    A A
    Sheet: Sheet2
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    Thanks AlKey and YasserKhalil!
    I think I will go for the formula-based solution but i write down the VBA Code in case later I have no other option but VBA

    Best regards from Germany!

  8. #8
    Forum Contributor
    Join Date
    05-12-2008
    Location
    Schleswig-Holstein, Germany
    MS-Off Ver
    2010
    Posts
    102

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    Thanks all the others too ! (JOHN H.DAVIS and jindon)

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Split a string in a cell and copy splitted characters to adjacent cells

    You're welcome. Glad you got your problem resolved!

+ 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] split cell contents into rows, and copy adjacent cells down
    By FDibbins in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-15-2016, 12:02 AM
  2. [SOLVED] How to split characters from a string...
    By mohit999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2016, 07:09 PM
  3. [SOLVED] Search for string, copy adjacent cell
    By omaolain in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2014, 10:44 AM
  4. [SOLVED] VBA for searching string in a column and copy rows depending on string in adjacent cell
    By xprakash in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-20-2013, 05:58 AM
  5. Split String into 4 Parts - Max 30 Characters per Cell and Whole Words
    By keithm_007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2012, 05:56 AM
  6. Replies: 4
    Last Post: 01-13-2012, 07:39 AM
  7. Split a cell into adjacent cells
    By contactprabha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2011, 05:26 AM

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