+ Reply to Thread
Results 1 to 3 of 3

Extracting text from a string

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-11-2016
    Location
    Atlanta
    MS-Off Ver
    2016
    Posts
    104

    Extracting text from a string

    I've got a cells B4 - B300 with text (I think these two examples cover the different amount of spaces):

    Antonio Brown, Pit WR
    Todd Gurley, LA RBBreaking News
    Brandin Cooks, NO WR
    Ezekiel Elliott, Dal RBBreaking News and Video

    I need to extract the players position and put it in a column of its own. For instance I need to get "WR" from Antonio Brown, and "RB" from Todd Gurley.

    Does anyone know how to do this?

    =MID(J7,FIND(",",J7)+FIND(" ",J7),2)

    works for Gurley, but not for Brown. I need one that works for all of them.

  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: Extracting text from a string

    Enter formula in K7 and copy down
    Formula: copy to clipboard
    =IFERROR(MID(J7,-LOOKUP(1,-FIND({"WR","RB"},J7)),2),"")

    v J K
    6
    7 Antonio Brown, Pit WR WR
    8 Todd Gurley, LA RBBreaking News RB
    9 Brandin Cooks, NO WR WR
    10 Ezekiel Elliott, Dal RBBreaking News and Video RB
    11
    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-11-2016
    Location
    Atlanta
    MS-Off Ver
    2016
    Posts
    104

    Re: Extracting text from a string

    Works! Thank you!

+ 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] Extracting a text string from a URL, almost there
    By Timmy22 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2014, 01:26 PM
  2. Extracting text from a string
    By AlexDeLara in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-26-2014, 04:41 AM
  3. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  4. [SOLVED] Extracting Text from a string of Text & Digits of variable length
    By hastex in forum Excel General
    Replies: 6
    Last Post: 06-06-2012, 09:11 AM
  5. Extracting text from a string
    By excelhelp18 in forum Excel General
    Replies: 1
    Last Post: 04-05-2012, 03:08 AM
  6. Extracting just the last name in a text string
    By braydon16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2008, 11:33 AM
  7. Extracting from a text string
    By AmyTaylor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2005, 08:34 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