+ Reply to Thread
Results 1 to 4 of 4

Extract code which is number and text.

Hybrid View

  1. #1
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2013
    Posts
    309

    Extract code which is number and text.

    Hi,

    little formula will help me out
    i just trying to extract code which contain number and text

    FOREXP - A V ENTERPRISES PQVMS139

    OUTPUT - PQVMS139


    Attached sample file.
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Extract code which is number and text.

    You can try this in B2 and then copy down.

    =IFERROR(TRIM(MID(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&1234567890))-6,9)),TRIM(MID(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&1234567890))-5,9)))

  3. #3
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2013
    Posts
    309

    Re: Extract code which is number and text.

    Quote Originally Posted by skywriter View Post
    You can try this in B2 and then copy down.

    =IFERROR(TRIM(MID(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&1234567890))-6,9)),TRIM(MID(A2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&1234567890))-5,9)))


    Perfect Thanks

  4. #4
    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 code which is number and text.

    Here is shorter way with an array formula

    =TRIM(MID(A2,MATCH(1,-MID(A2,ROW(A$1:A$99),1))-7,9))

    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER
    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. Extract a number from a text?
    By Cygnos in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-03-2015, 02:53 PM
  2. [SOLVED] Extract certain text dependant on number of characters in text
    By bjoanmark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 02:57 AM
  3. extract number from text and number cell
    By south in forum Excel General
    Replies: 15
    Last Post: 08-23-2014, 03:28 AM
  4. extract number with dot from text
    By neodjandre in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2008, 03:36 AM
  5. Extract number from text/number string..
    By nastech in forum Excel General
    Replies: 5
    Last Post: 07-05-2006, 06:25 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