+ Reply to Thread
Results 1 to 2 of 2

Function to extract variable length names from middle of cell

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    U.S.
    MS-Off Ver
    MS Office Pro 2010
    Posts
    3

    Function to extract variable length names from middle of cell

    Hi,

    I have a spreadsheet with over 10,000 rows that contain data that needs to be seperated. Each of the 10k rows look like this:

    09197000 LAST, FIRST M. 01 10 01

    The first part is an ID number, 09197000, which changes for each cell. I can use a =LEFT(A1, 8) function for this.
    The last part is a date in YY MM DD format. I can use a =RIGHT(A1, 8) function for this.

    The problem I run into is with the middle portion.
    The middle portion is a name that varies in length for each cell. As far as I know, the MID function will not work as it asks for a specific number of characters, but this will change for each cell.

    Any help is appreciated.

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Function to extract variable length names from middle of cell

    After putting... "09197000 LAST, FIRST M. 01 10 01" in A1 (without quotes)
    Try this..
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

+ 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. Function that enables me to extract text in the middle of a cell
    By 320 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-26-2014, 07:07 AM
  2. [SOLVED] how to extract variable length string
    By isurunk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 01:13 AM
  3. Extract variable length substring from a string
    By charron9 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2013, 11:52 AM
  4. Extract variable length of text from cell
    By stonegwene in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2011, 03:38 AM
  5. [SOLVED] EXTRACT TEXT FROM TEXT STRING:The names are of variable length
    By carricka in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2005, 06:05 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