+ Reply to Thread
Results 1 to 10 of 10

Need function to extract specific text/numbers from n number of text strings

  1. #1
    Forum Contributor
    Join Date
    06-12-2013
    Location
    india
    MS-Off Ver
    Office 365
    Posts
    163

    Need function to extract specific text/numbers from n number of text strings

    Hi Team,

    I need your help on the excel function to extract specific text from below given text string.

    I have below data in A column

    Cross Connection - Xconnect 2 SEL(LGC) CX002453 [Project WR-RITM1391990]
    Downgrade Power to 2KVA, (Sangam DC) (SE1) RTTG 208 V (NGN-CoreWAN B) SEL(LGC) CR00074569 -- TR PO 2005662


    I need the below data from the above given text string where it starts from "SEL".

    SEL(LGC) CX002453
    SEL(LGC) CR00074569

    Kindly check and help me on this
    Last edited by Giri.hb; 08-20-2020 at 04:01 AM.

  2. #2
    Registered User
    Join Date
    08-20-2020
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    1

    Re: need MID function

    Hello!

    Try this:

    =+LEFT(MID(A1;FIND("SEL";A1);LEN(A1)-FIND("SEL";A1));FIND(" ";MID(A1;FIND("SEL";A1);LEN(A1)-FIND("SEL";A1));FIND(" ";MID(A1;FIND("SEL";A1);LEN(A1)-FIND("SEL";A1)))+1))

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: need MID function

    Maybe this will work where your data is in C2 in this instance

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: need MID function

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Quang PT

  5. #5
    Forum Contributor
    Join Date
    06-12-2013
    Location
    india
    MS-Off Ver
    Office 365
    Posts
    163

    Re: need MID function

    Hi Chesscout,

    I am getting error while using the above given formula

  6. #6
    Forum Contributor
    Join Date
    06-12-2013
    Location
    india
    MS-Off Ver
    Office 365
    Posts
    163

    Re: need MID function

    Hi Crooza,

    I am getting error while I use the above given function for the below given text string in C2

    Fixed Line x 2 SEL(LGC) CR000761

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Need function to extract specific text/numbers from n number of text strings

    This may solve:

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    06-12-2013
    Location
    india
    MS-Off Ver
    Office 365
    Posts
    163

    Re: Need function to extract specific text/numbers from n number of text strings

    Hello Bebo021999,

    the given function is working for me, now I have noticed that some of the text string having mutiple SEL numbers as given below, in that I need both.

    Mizuho Bank New KR03941 SEL(LGU) LE0441 6M [WO# T00281761053B] SEL(SKB) LE0968


    I need as below
    SEL(LGU) LE0441 SEL(SKB) LE0968

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Need function to extract specific text/numbers from n number of text strings

    In B1:
    Please Login or Register  to view this content.
    next cell, C1:
    Please Login or Register  to view this content.
    Using "SEL(" if it always be, for neater solution.

    Copy all down

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need function to extract specific text/numbers from n number of text strings

    Please try this for upto 3 SEL

    ="SEL"&TRIM(LEFT(SUBSTITUTE(TRIM(MID(SUBSTITUTE(A2,"SEL",REPT(" ",100)),{1,2,3}*100,100))," ",REPT(" ",100),2),100))

    Add more number in Blue if need.

+ 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. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  2. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  3. Replies: 3
    Last Post: 08-14-2017, 06:26 AM
  4. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  5. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 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