+ Reply to Thread
Results 1 to 7 of 7

Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    Looking for formula to extract texts from cell. See sample file. Thanks

    Example:
    HTML Code: 
    Attached Files Attached Files
    Last edited by bjnockle; 02-29-2020 at 02:14 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    Formula for B2: =LEFT(RIGHT(A2,LEN(A2)-FIND("|",SUBSTITUTE(A2,"-","|",2))-1),FIND("-",RIGHT(A2,LEN(A2)-FIND("|",SUBSTITUTE(A2,"-","|",2))-1))-2)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    Slightly shorter version...
    =MID(LEFT(A2,LEN(A2)-7),FIND("@",SUBSTITUTE(A2,"-","@",2))+2,99)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    Hi Ford. Long time No See. Thanks for the lesson.
    Last edited by mehmetcik; 02-29-2020 at 04:20 PM.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    mehmetcik: Outstanding solution. Works like a charm. Thanks.

  6. #6
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    FDibbins: Excellent solution. Works like a charm. Thanks.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Extract texts from cell using RIGHT, LEFT OR MID FUNCTION

    @ mehmetcik hi there, and thanks

    @bjnockle happy to help and thanks for the feedback

+ 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. Replies: 11
    Last Post: 04-09-2019, 09:50 AM
  2. [SOLVED] Extract from varied texts
    By rmexcell in forum Excel General
    Replies: 10
    Last Post: 08-29-2018, 08:08 PM
  3. [SOLVED] Need to extract the texts
    By Sekars in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2018, 02:14 AM
  4. [SOLVED] Extract texts from cell to multiple cells?
    By GPMan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2018, 04:40 AM
  5. [SOLVED] Formula to extract row / right last texts for given texts
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-30-2015, 02:51 AM
  6. [SOLVED] To extract texts from a cell
    By Dewdrop in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2014, 10:26 AM
  7. Extract texts from a cell and paste it to another cell
    By alterego23 in forum Excel General
    Replies: 3
    Last Post: 11-22-2012, 11:51 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