+ Reply to Thread
Results 1 to 2 of 2

Extract data from middle of cell

Hybrid View

ajhat Extract data from middle of... 09-23-2014, 09:56 AM
AlKey Re: Extract data from middle... 09-23-2014, 10:04 AM
  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    U.S.
    MS-Off Ver
    MS Office Pro 2010
    Posts
    3

    Extract data 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 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: Extract data from middle of cell

    You try this

    You string is in A1

    in B1 enter this formula

    =TRIM(LEFT(A1,FIND(" ",A1)))

    Now, in D1 use this one

    =RIGHT(A1,8)

    and in C1

    =TRIM(SUBSTITUTE(SUBSTITUTE(A1,B1,""),D1,""))

    A
    B
    C
    D
    1
    09197000 LAST, FIRST M. 01 10 01 09197000 LAST, FIRST M. 01 10 01
    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. Extract Data from Middle of Cell
    By narrowgate88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2012, 06:49 PM
  2. Replies: 0
    Last Post: 06-29-2012, 03:16 PM
  3. Formula to extract data from the middle of a cell.
    By SEMMatt in forum Excel General
    Replies: 5
    Last Post: 11-21-2011, 06:20 PM
  4. Need to Extract Data from middle of cell
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-12-2009, 12:59 PM
  5. Extract data from middle of a cell...
    By jhayes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-15-2007, 04:05 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