+ Reply to Thread
Results 1 to 2 of 2

Trying to extract text only from a alphanumeric string

  1. #1
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Angry Trying to extract text only from a alphanumeric string

    Hello
    A great evening to everyone seeing this post and a warm regards to all respected members.

    I am trying to extract only text from a alphanumeric string without using substitute for 10 times.

    for an example in A1
    B4D5MAB3C12K789KLA0

    in B1 i am expecting
    BDMABCKKLA

    I am trying to get it without using substitute function for around 10 times.

    So far been able to generate locations of text and numbers as below
    I am using below formula to generate locations of numbers
    =MMULT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=TRANSPOSE(CHAR(ROW(48:57)))),ROW(1:10))

    i can use below to generate location of text
    =NOT(MMULT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=TRANSPOSE(CHAR(ROW(48:57)))),ROW(1:10)))*ROW(INDIRECT("1:"&LEN(A1)))

    now stuck at how to pull values in a single cell from here is a bit of head cracking now.
    Last edited by hemesh; 12-24-2015 at 10:25 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  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: Trying to extract text only from a alphanumeric string

    Here is a simple way

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Excel 2016
    A
    B
    1
    B4D5MAB3C12K789KLA0 BDMABCKKLA
    Sheet: Sheet2

    Edit: Sorry, I missed that part: "I am trying to get it without using substitute function for around 10 times".


    The only other solution would be VBA

    -----------------------------------------------------------------------------------------

    1. Copy code below
    2. Press Alt and F11 on your keyboard to open VB Editor
    3. Click on Insert and select Module
    4. Paste code into Module and close VB Editor.

    Don't forget to save your worbook as Macro-Enabled workbook.

    Please Login or Register  to view this content.
    then use formula: =NumberOut(A1)

    Excel 2016
    A
    B
    1
    B4D5MAB3C12K789KLA0 BDMABCKKLA
    2
    AD65ADF65HHGF556FG0FGH ADADFHHGFFGFGH
    3
    6WER00SDF456S1FSDF06548 WERSDFSFSDF
    Sheet: Sheet1
    Last edited by AlKey; 12-24-2015 at 11:33 AM.
    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 numbers from a string of alphanumeric text
    By Joshdm0716 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-09-2014, 08:28 PM
  2. [SOLVED] EXtract ALphanumeric from text string
    By Ellice16 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-30-2013, 03:34 AM
  3. Replies: 4
    Last Post: 08-05-2013, 07:27 AM
  4. extract numbers from alphanumeric text string if 1st tier not available
    By Ellice16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 01:52 AM
  5. [SOLVED] VBA expression to extract the text from the beginning of an alphanumeric string
    By webfeet2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2012, 12:41 AM
  6. How do I extract a number from an alphanumeric string?
    By paulh09 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-16-2012, 09:44 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