+ Reply to Thread
Results 1 to 5 of 5

Insert Single Character At Specific Point in Cell

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    47

    Insert Single Character At Specific Point in Cell

    Basically, I need to turn a column with data like this:

    234019809 -- this is number 49 aof 1001
    1009887347898 this is the serial number of a line toaster
    the blue ottoman is fragile
    122233302988 5 golden rings
    10909888882 has three green feathers
    789 drummers drumming


    ...into this:

    234019809 | -- this is number 49 aof 1001
    1009887347898 | this is the serial number of a line toaster
    the blue ottoman is fragile
    122233302988 | 5 golden rings
    10909888882 | has three green feathers
    789 drummers drumming


    RULES
    A pipe should be inserted after a number that meets the following criteria:

    1) The number is 8-15 digits long, and
    2) The number is at the beginning of the cell

    Can anyone help me out with this? I can figure out most things in Excel on my own or with a bit of Googling but this one has me stumped.

    Thanks!
    Last edited by daedelous00; 08-01-2013 at 10:45 AM.

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Insert Single Character At Specific Point in Cell

    Based on your post this will work for you.

    Please see attached

    Insert pipe.xlsx
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Insert Single Character At Specific Point in Cell

    Genius. Thanks!

  4. #4
    Registered User
    Join Date
    07-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Insert Single Character At Specific Point in Cell

    Actually, I take that back. One issue.

    The formula does not differentiate between numbers and letters. If the first word is between 8 and 15 characters, it will still insert a pipe. It should only do that for numbers.

  5. #5
    Registered User
    Join Date
    02-18-2013
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Insert Single Character At Specific Point in Cell

    Please Login or Register  to view this content.
    counts up to the first space, captures that number of characters minus one (the space itself), multiplies it by 1 to convert text to number, and checks to see if it is indeed a number. then piggyback off the other poster's work.

+ 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. Replies: 4
    Last Post: 09-06-2011, 10:36 AM
  2. Replies: 2
    Last Post: 08-13-2009, 04:26 PM
  3. Remove a single character from a cell
    By netman in forum Excel General
    Replies: 2
    Last Post: 01-21-2008, 01:18 PM
  4. Insert Formatted Row at specific point within Dynamic Range
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2006, 10:44 PM
  5. Case sensitive and single character in cell
    By praveen_khm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2006, 10:21 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