+ Reply to Thread
Results 1 to 9 of 9

Extract texts from cell using RIGHT or LEFT 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 or LEFT FUNCTION

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

    HTML Code: 
    Attached Files Attached Files
    Last edited by bjnockle; 03-09-2020 at 09:27 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Extract texts from cell using RIGHT or LEFT FUNCTION

    what could you offer that would give someone an indication about which items you want?
    For example, the first 8 examples the consistent thing to look for is the first space then on row 10 you want the data to the left of the second space, then back to everything to the left of the first space on row 11, then second space on row 12, to the left ignoring the comma on rows 14 and 15 and 17.
    It is difficult to write a formula when what you are looking for is inconsistent.

    How many of these are there and would a lookup formula based on a table be an option?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

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

    Re: Extract texts from cell using RIGHT or LEFT FUNCTION

    Sambo kid: Nice observation. It should be consistent on all. I noticed A10 (4 Kido Engr Inc) has space right after 4 instead of no space for consistency (4Kido Engr Inc). We might need a formula to fix this kind of issue before writing the formula we need to extract texts from cell. See revised attached file. Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Extract texts from cell using RIGHT or LEFT FUNCTION

    is 4 Kido a one off or are there more like that potentially in your data? If one off it could be easy to write that into a formula but if there are more like that it becomes more complicated (like 3 Kam and 3Kam).

  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 or LEFT FUNCTION

    it is a one (1) off. Thanks.
    Last edited by bjnockle; 03-09-2020 at 10:07 PM.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Extract texts from cell using RIGHT or LEFT FUNCTION

    ok, this looks like it works, at least for your sample...
    =IFERROR(IF(LEFT(A2,6)="4 kido","4Kido",IF(LEFT(A2,5)="A. M.","A.M.",LEFT(A2,SEARCH(" ",A2)-1))),A2)

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

    Re: Extract texts from cell using RIGHT or LEFT FUNCTION

    Sambo kid: If we do not need to fix any issue, could you please write a general formula that extract the texts. Thanks.
    Last edited by bjnockle; 03-09-2020 at 10:23 PM.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Extract texts from cell using RIGHT or LEFT FUNCTION

    Could you put into the workbook what that would look like? It sounds like you want everything but the numbers or you only want the numbers left, not sure which and if that means instead of 1st from 1st Shirt you just want the 1 or just want the st Shirt?

  9. #9
    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: Extract texts from cell using RIGHT or LEFT FUNCTION

    Try this:

    Enter formula in B2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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

+ 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] Extract texts from cell using RIGHT, LEFT OR MID FUNCTION
    By bjnockle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2020, 01:31 AM
  2. [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
  3. [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
  4. [SOLVED] To extract texts from a cell
    By Dewdrop in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2014, 10:26 AM
  5. [SOLVED] Using LEFT function to extract value
    By src16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2013, 09:37 AM
  6. 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
  7. [SOLVED] sumif function when left 4 texts are matching
    By Vikram Dhemare in forum Excel General
    Replies: 1
    Last Post: 04-25-2006, 03:30 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