Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Flu Flu is offline
external usenet poster
 
Posts: 5
Default Extracting numbers from alphanumeric data

I have a long list of data which is alphanumeric. I would like to extract the
string last 3 digits number out.
Is there a quick forumula to it?

e.g.
SK109028-AMP3 - data extract should be 028
504467993AK3 - data extracted should be 993
505747995 - data extracted should be 995

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Extracting numbers from alphanumeric data

=MID(A20,6,3)

--
__________________________________
HTH

Bob

"Flu" wrote in message
...
I have a long list of data which is alphanumeric. I would like to extract
the
string last 3 digits number out.
Is there a quick forumula to it?

e.g.
SK109028-AMP3 - data extract should be 028
504467993AK3 - data extracted should be 993
505747995 - data extracted should be 995



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Extracting numbers from alphanumeric data

Give this formula a try...

=RIGHT(LOOKUP(9.9E+307,--LEFT(MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"012 3456789")),99),ROW($1:$99))),3)

where I have assumed your first data value is in A1 (this formula can be
copied down). Note that the formula returns text, not a number (so that
leading zeroes can be preserved as per your first example).

--
Rick (MVP - Excel)


"Flu" wrote in message
...
I have a long list of data which is alphanumeric. I would like to extract
the
string last 3 digits number out.
Is there a quick forumula to it?

e.g.
SK109028-AMP3 - data extract should be 028
504467993AK3 - data extracted should be 993
505747995 - data extracted should be 995


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Extracting numbers from alphanumeric data

On Wed, 3 Sep 2008 01:22:09 -0700, Flu wrote:

I have a long list of data which is alphanumeric. I would like to extract the
string last 3 digits number out.
Is there a quick forumula to it?

e.g.
SK109028-AMP3 - data extract should be 028
504467993AK3 - data extracted should be 993
505747995 - data extracted should be 995


Another method that will give you a lot more functions and flexibility to use
in the futu

Download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr/morefunc/english/index.htm

Then use this formula (with your data in A1):

=REGEX.MID(A1,"\d{3}",-1)
--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
Flu Flu is offline
external usenet poster
 
Posts: 5
Default Extracting numbers from alphanumeric data

thanks. This formular works wonders !!!

"Rick Rothstein" wrote:

Give this formula a try...

=RIGHT(LOOKUP(9.9E+307,--LEFT(MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"012 3456789")),99),ROW($1:$99))),3)

where I have assumed your first data value is in A1 (this formula can be
copied down). Note that the formula returns text, not a number (so that
leading zeroes can be preserved as per your first example).

--
Rick (MVP - Excel)


"Flu" wrote in message
...
I have a long list of data which is alphanumeric. I would like to extract
the
string last 3 digits number out.
Is there a quick forumula to it?

e.g.
SK109028-AMP3 - data extract should be 028
504467993AK3 - data extracted should be 993
505747995 - data extracted should be 995



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting numbers from alphanumeric strings Poonam Excel Worksheet Functions 5 April 5th 08 01:27 AM
extract numbers from a alphanumeric cell Igneshwara reddy Excel Worksheet Functions 4 February 27th 07 06:24 PM
extracting numbers from alphanumeric cells Mary Excel Worksheet Functions 6 February 22nd 07 12:04 PM
extracting numbers from data [email protected] New Users to Excel 2 December 6th 06 08:42 PM
Sorting alphanumeric numbers maurice.centner Excel Discussion (Misc queries) 2 May 6th 05 02:00 AM


All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"