+ Reply to Thread
Results 1 to 5 of 5

Extract text from the middle

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Extract text from the middle

    Hello,

    I have a question on extract text from the middle. I have attached a file here. I need to extract the text after the - and drop all letters at the end.

    Any help will be greatly appreciate.

    Jackson
    Attached Files Attached Files
    Last edited by jackson_hollon; 12-21-2016 at 03:41 PM.

  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 text from the middle

    Try this
    Enter in B2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 What I have What I want
    2 2015-300C 300
    3 2015-0304A 0304
    4 2015-CU176A CU176
    5 2015-CU189BY CU189
    6 2015-CU194A CU194
    7 2015-CU196CM CU196
    8 YD2015-165A 165
    9 RS2015-165B 165
    10 RD2015-172A 172
    11 WX2015-176A 176
    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

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Extract text from the middle

    Hello Al,

    Thanks for the reply. When I used your formula in the test file, it works. But my column in reality is in column K. When I used your formula it, it doesn't work. I do not know why to adjust it.

    Thanks for the help.

    Jackson

  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: Extract text from the middle

    Change A2 to let say K2 leave the rest as is.

    =SUBSTITUTE(LEFT(K2,LOOKUP(1,-MID(K2,COLUMN(A:XFC),1),COLUMN(A:XFC))),LEFT(K2,FIND("-",K2)),"")

  5. #5
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Extract text from the middle

    Al,

    It works.

    Thank you very much.

    Jackson

+ 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. how extract phone number from middle of the text
    By perusjosh in forum Excel General
    Replies: 4
    Last Post: 07-07-2015, 11:19 AM
  2. [SOLVED] Extract Text from middle of text string
    By reedersketer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2014, 05:12 PM
  3. 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
  4. Extract number in the middle of text (check from right-to-left)
    By diywho in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2012, 05:21 AM
  5. Extract text from the middle of a string for concatenation
    By christopherp in forum Excel General
    Replies: 1
    Last Post: 05-16-2011, 08:55 AM
  6. Extract 1, 2 or 3 words from middle of text in a cell
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-31-2010, 02:55 PM
  7. Extract 1st name & middle initial
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2006, 06:50 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