+ Reply to Thread
Results 1 to 7 of 7

Trying to Extrarct Text from the Middle of a Text String

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Trying to Extrarct Text from the Middle of a Text String

    Hello everyone. So here's the issue I'm having. I have a string of text that reads like below.

    Flange-Material Grade (UNS, EN, AISI): Inconel 601, UNS-N06601

    Parts of this string will vary, parts will stay the same. Example below.

    Flange-Material Grade (UNS, EN, AISI): ***This always stays the same***
    Inconel 601 ***This will vary***
    , UNS-N06601 ***This will vary***

    My thought was something along the lines of =LEFT(A1, then 39 characters in,- the comma and everything after it)...but you know, more formulaic. Any thoughts? Would greatly appreciate the help. Tks.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Trying to Extrarct Text from the Middle of a Text String

    What is the desired result based on your one example?

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Trying to Extrarct Text from the Middle of a Text String

    This will return Inconel 601 with your example string in A1.

    =MID(A1,40,FIND(",",MID(A1,40,LEN(A1)))-1)

  4. #4
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Trying to Extrarct Text from the Middle of a Text String

    Basically the layout is the same on all the them. They all start the same way, but the back end changes based on the change in material. I'm trying to inly extract the material information. The number of characters varies however. Sometimes it's two or three letters; F5, F11, CS....In the above example it's Inconel 601. That's what I'm after. Inconel 601. Thanks for your help.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Trying to Extrarct Text from the Middle of a Text String

    Perfect! See post #3.

  6. #6
    Forum Contributor
    Join Date
    02-12-2018
    Location
    TX
    MS-Off Ver
    MS Office 2019
    Posts
    305

    Re: Trying to Extrarct Text from the Middle of a Text String

    Looks like that's doing the trick. Works great. Appreciate the help. You just saved me a week of messing around with this stuff. Thanks again.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Trying to Extrarct Text from the Middle of a Text String

    You're welcome. Happy to help!

+ 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. Selecting text from the middle of a string
    By hammerguy2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2016, 07:45 PM
  2. Pick out text from middle of a string
    By aaron.phelan12345 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-06-2015, 01:00 PM
  3. [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
  4. Sort by text in the middle of a string
    By javeds in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2014, 12:32 PM
  5. [SOLVED] if formula looking at value in middle of text string
    By SAsplin in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-25-2013, 06:57 AM
  6. [SOLVED] pulling text from the middle of a string
    By DRFILL in forum Excel General
    Replies: 3
    Last Post: 09-21-2012, 11:35 AM
  7. [SOLVED] Need help grabbing text from the middle of a text string
    By AJSchwayze in forum Excel General
    Replies: 7
    Last Post: 09-18-2012, 11:25 AM

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