Extract text from alphanumeric value using Excel Formula

Q : Mark asked if we can extract text from alphanumeric value using excel formula.

Solution : Suppose alphanumeric value is placed in cell A2.

Enter the following formula in cell B2.



How it works ?

The Microsoft Excel SUBSTITUTE function replaces a set of characters with another.

Trick : The above formula replaces 1 through 9 with blank value. Hence, all the numeric values are rubbed out from the alphanumeric string.

Spread the Word!
Share
Related Posts
About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 10 years of experience in data science. During his tenure, he has worked with global clients in various domains like Banking, Insurance, Private Equity, Telecom and Human Resource.

6 Responses to "Extract text from alphanumeric value using Excel Formula"
  1. Yo need to update the formula as it does not remove number zero from text

    =SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE(SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE( SUBSTITUTE(+SUBSTITUTE(A2,"0",""),"1",""),"2",""), "3",""),"4",""),"5",""), "6",""),"7",""),"8",""),"9","")

    ReplyDelete
  2. Thanks a ton Deepanshu & Nitish Walia

    ReplyDelete
  3. THIS is what I need - but I need the numeric characters not alpha. Is there a formula?

    ReplyDelete
  4. Don't you think this is pretty terrible solution? What if you wanted only the characters a-zA-Z, would you suggest burying a2 in substitutes for the entire ascii table excluding the characters you want? This answer is ugly and only applicable to a very specific use case.

    ReplyDelete

Next → ← Prev