+ Reply to Thread
Results 1 to 3 of 3

Insert spaces into specific parts of text string

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Insert spaces into specific parts of text string

    I need to add spaces into specific places of a cell. For example:

    12345678901
    23456789012
    34567890123

    Needs to look like:

    12 34 5 678 901
    23 45 6 789 012
    34 56 7 890 123

    I can't figure out how to add more than one space.

    Please help me!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Insert spaces into specific parts of text string

    If the first number is in A1, put this in B1 and copy down:

    =LEFT(A1,2)&" "&MID(A1,3,2)&" "&MID(A1,5,1)&" "&MID(A1,6,3)&" "&RIGHT(A1,3)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    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: Insert spaces into specific parts of text string

    Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    v A B
    1 12345678901 12 34 5 678 901
    2 23456789012 23 45 6 789 012
    3 34567890123 34 56 7 890 123
    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

+ 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] Look for specific text string, insert row below, insert text to that row
    By jwats in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-19-2015, 03:08 PM
  2. Formula to extract parts of text string
    By edorris3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2014, 10:22 AM
  3. Pulling specific parts out of text in a cell.
    By Befuddled in forum Excel General
    Replies: 3
    Last Post: 06-12-2010, 01:51 AM
  4. insert spaces into text string
    By mmwltd in forum Excel General
    Replies: 6
    Last Post: 04-27-2010, 01:05 PM
  5. Extracting parts of a text string
    By -emma- in forum Excel General
    Replies: 2
    Last Post: 07-29-2008, 07:06 PM
  6. How to insert spaces in a string please
    By Andrew Thomas in forum Excel General
    Replies: 2
    Last Post: 07-17-2007, 08:49 AM
  7. [SOLVED] Splitting String into Consitiutent Parts including spaces characte
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-08-2006, 08:55 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