+ Reply to Thread
Results 1 to 4 of 4

Split text string with semicolon

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Split text string with semicolon

    Please review the forum rules concerning titles and why we like to see meaningful ones. As this is your first post I've changed it for you
    RB

    I have a several rows of 32 digit numbers only in the first column of excel sheet.I want to put semicolon after every 2 digits.
    Plz provide me a simple and a quick solution.
    Last edited by Richard Buttrey; 04-09-2012 at 12:00 PM. Reason: Thread title not adequate

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Need help

    This routine will insert a semicolon after every 2 digits. Formatted the column as text for this. See attachment


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Split text string with semicolon

    Off the top

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Split text string with semicolon

    Hi,

    There's no doubt a string slicing array formula which I'll have a think about but a way which avoids VBA is to select the whole column and use Data Text To Columns and choose fixed width to split the string up into 16 columns of two characters. Now in a new column concatenate all those 16 column with a ";" in between.

    A bit messy and there will no doubt be a simple(?) array formula coming along....
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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