+ Reply to Thread
Results 1 to 4 of 4

Pull out text

  1. #1
    Registered User
    Join Date
    02-06-2007
    Posts
    6

    Pull out text

    I have over a 100 lines like this....
    Male Run Tee 10mm Tubexmale Bspt

    They all are different numbers in front of the "mm".

    Each string is a different length. I want to pull out the number in front and put into the next column. So in this case, the next column would show "10mm".

    Thanks for your help.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Pull out text

    IF....

    the units are always mm (you didn't say)....

    =(-LOOKUP(1,-RIGHT(TRIM(LEFT(A9,FIND("mm",A9)-1)),{1,2,3,4,5,6,7,8,9})))&"mm"
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Pull out text

    If not...Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Finally, please edit your profile to show a) where you are (roughly) and b) the Excel version you are using. Both can influence the answers needed very considerably.

  4. #4
    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: Pull out text

    Or try this
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 Male Run Tee 10mm Tubexmale Bspt
    10mm
    2 Male Run Tee 254mm Tubexmale Bspt
    254mm
    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. [SOLVED] pull numbers from text - trim text portion
    By jackf-nc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2017, 09:47 AM
  2. Advanced Split Function: Need to pull text string in quotes, within a text string
    By Zamboni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2013, 04:38 PM
  3. Code/Solution To Search All Text in a Cell and Pull UniqueID Corresponding to the Text
    By brandnew22 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-06-2013, 10:56 AM
  4. [SOLVED] how to pull out a string a text in between of 2 other strings of text
    By SEMMatt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2012, 10:52 AM
  5. Pull text from a text string
    By sctraffic in forum Excel General
    Replies: 5
    Last Post: 08-03-2011, 06:45 AM
  6. Replies: 3
    Last Post: 12-20-2007, 03:50 PM
  7. Replies: 1
    Last Post: 04-12-2006, 05:00 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