+ Reply to Thread
Results 1 to 5 of 5

extracting a substring of mixed numbers and capital letters from text field to a column

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    extracting a substring of mixed numbers and capital letters from text field to a column

    Hello everyone - I am very green at this, there's a learning curve so please bear with me

    I have a worksheet with column E in which each cell is a field of text/comments that contain a list of equipment numbers. The equipment numbers are what I'm trying to extract into column A. I am having a difficult time with the MID function - having used FIND to locate what I think is one of the distiguishable constants which is a lowercase "f" just a few spaces before the equipment is listed out. However, these fields were manually enetered and have inconsistencies - which has me wondering if I might be able to do some sort of camparison in which the first instance of an equipment number can be found and used as a start point? The list almost always ends with a period so I think think thats a good end point..but I can't seem to get it to extraxt at the right point..I end up with the lowercase "f" and about 20-something characters trailing..

    There are many of these cells I'll be working with - my objective ultimately is to:

    1. extract the equipment numbers into col. A

    2. populate col.D with a duplicate of the comments cell on the same row with each euipment number

    3. leave an empty row between each "set" of equipment numbers

    I know this is a step by step process and getting those numbers out is my priority. Can someone help me on this one?

    This is the formula I've pieced together

    =MID(E2,FIND("f",E2,FIND("f",E2)-1),FIND(".",E2,FIND(".",E2)))



    Ive attached an example with before and after goals

    Thank you!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: extracting a substring of mixed numbers and capital letters from text field to a colum

    It would be really helpful if you posted a sample list that is indicative of the variations.
    Even better would be a sample workbook.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: extracting a substring of mixed numbers and capital letters from text field to a colum

    Can you post some examples of the string, and your expected results?
    You can attach a sample book too, that would be very helpful.

  4. #4
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: extracting a substring of mixed numbers and capital letters from text field to a colum

    the attachments I meant for the original post
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: extracting a substring of mixed numbers and capital letters from text field to a colum

    I apologize, was disconnected - here they are. I put the equipment numbers in bold for ease of identifying them here - unfortunately they weren't that way when originally entered - also, the second "set" in the worksheet I titled "objective" is only a copy of the first set for the purpose of showing the general objective
    Last edited by steik; 03-20-2014 at 01:41 PM. Reason: clarification

+ 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] Returning a value if text is in capital letters
    By jennieS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2013, 08:31 AM
  2. UserForm Textbox Format With Capital Letters and Numbers
    By saucey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2012, 11:38 AM
  3. Text to Coloumns, by consecutive capital letters
    By paperclip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2006, 07:38 AM
  4. Sort mixed numbers/letters
    By V-ger in forum Excel General
    Replies: 1
    Last Post: 11-14-2005, 06:55 PM
  5. [SOLVED] How do I change a column of cells to all capital letters?
    By morpattyjo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2005, 04:06 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