View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Auric__ Auric__ is offline
external usenet poster
 
Posts: 538
Default Need Formula For Extracting Part Numbers

tb wrote:

I am using Excel 2010 for Windows.

I have a database of part numbers like this one:

10_32M2A050A002 CYLINDER

Please note that there are two blank spaces between "32M2A050A002" and
"CYLINDER".

I need a formula that will extract each string after the unerscore (_)
sign and the two blank spaces.

So the end result would be this:
32M2A050A002

Thanks for your help.


Assuming your text is in A1:

=MID(A1,FIND("_",A1)+1,FIND(" ",A1)-FIND("_",A1)-1)

--
The clouds move lazily across the sky,
and everybody thinks they're stupid.