+ Reply to Thread
Results 1 to 4 of 4

Extract code from text string

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    2

    Extract code from text string

    CODES.xlsxI need help extracting from a cell, a code that is formed from letters and numbers. For example:

    SOFT CASE SAMSUNG EXTRASLIM SMGR4F FOR SAMSUNG GALAXY S4
    I need a formula to extract "SMGR4F"

    HARD BACK CASE SVDBCASE0043 IPHONE4/4S FOR IPHONE 3
    I need extracted "SVDBCASE0043"

    NOTE: It is always the first word that contains text+number
    I attached a document with a part of the codes, and bebo021999's formula, which works for most of the codes.

    I really hope you can help me with this,
    Thank you and best regards!
    Last edited by dionysusftw; 01-30-2014 at 02:47 PM. Reason: Added some info

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,435

    Re: Extract code from text string

    Assuming A1 is code, try this array formula:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-shift-enter
    Quang PT

  3. #3
    Registered User
    Join Date
    01-30-2014
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Extract code from text string

    You are extraordinary, sir!! The formula works, but it always leave out the last digit/letter of the code. Could you please fix that?

    Best Regards!

    Quote Originally Posted by bebo021999 View Post
    Assuming A1 is code, try this array formula:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-shift-enter

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,435

    Re: Extract code from text string

    I am confusing with my formula myself a little bit! It is too complicated to remind
    Can you try to delete "-1" at the end of it?

+ 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] Find and extract text string from within another text string
    By huy_le in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2013, 03:22 PM
  2. Code to Extract certain text from a string
    By bcorm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2013, 01:57 PM
  3. [SOLVED] How to Extract A Number from String if Text within the String Equals XYZ
    By tyrsfury in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2012, 03:30 PM
  4. [SOLVED] extract text string when you only know the last three letters of that string
    By alison0edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 01:20 PM
  5. Extract small string of text from larger string
    By mark_jam3s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2010, 05:36 AM

Tags for this Thread

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