+ Reply to Thread
Results 1 to 6 of 6

extracting text from within quotes

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    extracting text from within quotes

    i have a list of things that are on some CD's and i want to put them on a Excel spreadsheet, but i do not want the numbers after the first set of speech marks, i have tried MID but as you can see not all of the items are the same length

    4U 070;"N.o.B.I. Brainstorm";"53B900AD";"B4DA24CE"
    4U 071;"N.o.B.I. Racing";"B33D109D";"86DBAFFE"
    4U 072;"CCD-Demo";"C022F97A";"E9A54209"
    4U 073;"Inshape";"A5635374";"2E3245D9"
    4U 073;"Books";"A5635374";"2E3245D9"
    4U 073;"Hardware";"A5635374";"2E3245D9"
    4U 073;"Raystart";"A5635374";"2E3245D9"
    4U 074;"Argon";"47558C80";"9AE70A2E"
    4U 074;"Crypton";"47558C80";"9AE70A2E"
    i want the first speech marks not the second or third

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: extracting text from within quotes

    What do you mean by speech marks? can you please show the expected result?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Re: extracting text from within quotes

    Quote Originally Posted by Sheepkin_Coat View Post
    i have a list of things that are on some CD's and i want to put them on a Excel spreadsheet, but i do not want the numbers after the first set of speech marks, i have tried MID but as you can see not all of the items are the same length

    4U 070;"N.o.B.I. Brainstorm";"53B900AD";"B4DA24CE"
    4U 071;"N.o.B.I. Racing";"B33D109D";"86DBAFFE"
    4U 072;"CCD-Demo";"C022F97A";"E9A54209"
    4U 073;"Inshape";"A5635374";"2E3245D9"
    4U 073;"Books";"A5635374";"2E3245D9"
    4U 073;"Hardware";"A5635374";"2E3245D9"
    4U 073;"Raystart";"A5635374";"2E3245D9"
    4U 074;"Argon";"47558C80";"9AE70A2E"
    4U 074;"Crypton";"47558C80";"9AE70A2E"
    i want the first speech marks not the second or third

    this is in column B
    4U 070;"N.o.B.I. Brainstorm";"53B900AD";"B4DA24CE"

    column A
    i have used =left(A2,6), which gets me 4U 070

    what i want in column C is
    N.o.B.l. Brainstorm

    what i mean about speech codes is "

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: extracting text from within quotes

    Hi Sheepkin_coat,

    Assuming your data is in column A, use below formula in B1 and drag it down:-

    Formula: copy to clipboard
    =MID(A1,SEARCH(";",A1)+2,(SEARCH(";",A1,SEARCH(";",A1)+1)-2-SEARCH(";",A1)-2)+1)


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  5. #5
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    Re: extracting text from within quotes

    Quote Originally Posted by dilipandey View Post
    Hi Sheepkin_coat,

    Assuming your data is in column A, use below formula in B1 and drag it down:-

    Formula: copy to clipboard
    =MID(A1,SEARCH(";",A1)+2,(SEARCH(";",A1,SEARCH(";",A1)+1)-2-SEARCH(";",A1)-2)+1)


    Regards,
    DILIPandey
    <click on below * if this helps>
    Thanks for that it's great and i have give you some REP

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: extracting text from within quotes

    you are welcome Sheepkin_Coat... cheers

    Suggest you to mark this thread as [SOLVED].. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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