Excel: Extracting numbers from alphanumeric strings

Tuesday, December 25th, 2007

This article was written by Ashish Mathur, a Microsoft MVP (Most Valuable Professional). Visit the Microsoft MVP Web site for more information.

In the following article I explain a formula that extracts numbers from strings in the following types of situations:

  • When alphabetic and number characters are clustered together, such as abc123 or 678sfr.
  • When alphabetic and number characters are not clustered together, such as abc15tni.

Problem

How to extract the numeric portion of an alphanumeric string. For example: If cell A1 contains the string “abc123″, return the value 123 in cell B1.

Solution

The underlying logic here is to search for and return the first number in the alphanumeric string, and then return only the numbers that follow.

(more…)

Popularity: 43% [?]

About Office-it.orG

This is a site to share my knowledge, discovery and experience related to my hobby and work. Most articles on this site are related to web design, web development, graphic design, short reviews, tips and tricks. I sometimes write some about Microsoft Office Application too.

Want to subscribe?

RSS Subscribe in a reader Or, subscribe via email:
Enter your email address:  
Find entries :