+ Reply to Thread
Results 1 to 7 of 7

Add two spaces to positions in cell

  1. #1
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Add two spaces to positions in cell

    Have cells that look like this: WD280457713266


    Want to add 2 spaces on the right to make them look like this: WD28045771 32 66


    Any thoughts as to a formula?

    Thanks for ideas.

    Pete

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Add two spaces to positions in cell

    If your strings are all the same length, try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    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,777

    Re: Add two spaces to positions in cell

    Are all entries the same length? If so:

    =LEFT(A1,10)&" "&MID(A1,11,2)&" "&RIGHT(A1,2)
    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.

  4. #4
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Add two spaces to positions in cell

    Thank you all so much. They do differ in length, but the shorter ones. . .there's only a few. I can just retype those.

    Thanks again.

    Pete

  5. #5
    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,777

    Re: Add two spaces to positions in cell

    There are ways to automate it. Try this:

    =LEFT(A1,LEN(A1)-4)&" "&MID(A1,LEN(A1)-3,2)&" "&RIGHT(A1,2)

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Add two spaces to positions in cell

    For all lengths try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    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,777

    Re: Add two spaces to positions in cell

    I think there's an echo in here ...

+ 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. Assigning points to positions and automatically reordering positions based off points
    By SupercrossPrez in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 03-11-2019, 11:52 AM
  2. Replies: 9
    Last Post: 12-31-2018, 01:29 PM
  3. [SOLVED] Locate the 25 positions of the letters of the 4 blocks Each block has 25 positions
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 50
    Last Post: 12-22-2017, 12:46 PM
  4. Copying cell to different positions
    By tonylyx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2015, 01:05 AM
  5. How to add/subtract cell positions
    By jonnyyyl in forum Excel General
    Replies: 6
    Last Post: 02-03-2012, 08:53 AM
  6. logging a xml feed-copy the same cell and paste into increasing cell positions.
    By sanpedro_nz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2009, 12:10 AM
  7. [SOLVED] Testing positions in a cell
    By MarcusA in forum Excel General
    Replies: 2
    Last Post: 11-03-2005, 10:30 PM

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