A formula to pick no from a sentence

ahamed

Board Regular
Joined
Jan 11, 2011
Messages
114
Hi

I have list of names of products which include code, I'm looking for formula that can distinguish the text from the letters (in same order as it is entered)


Abc125mmXc = a formula to pic only 125
Cbf456wnXd = a formula to pic only 456
Ghe885trXe = a formula to pic only 885

Thank you ;)
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
=lookup(99^99,--(0&mid(a1,min(find({0,1,2,3,4,5,6,7,8,9},a1&1234567890)),row(indirect("1:"&len(a1)+1)))))
 
Upvote 0
=1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$9),1)),0),COUNT(1*MID(A1,ROW($1:$9),1)))

*Note: CTRL+SHIFT+(Enter) to be entered as an array formula..
From:MS Office2010 Help
 
Upvote 0
You have been given a number of alternatives for extracting a number from within a string. However, if your data is as uniform as your 3 samples, then this simpler formula may be all that is required.

=MID(A1,4,3)+0
 
Upvote 0
Hi every one

Sorry, I hope I have another issue. Previously I thought having one set of number will serve my purpose, I think I need entire code to get into separate cell;

let me put as follow ;

Empty cans (can size 211X 109) Crown = (need to pick only) 211X 109
Empty cans (can size 307 x 111) APC = 307 x 111
Empty cans ( can size 307 x 112) = 307 x 112
Empty cans ( can size 307 x 113) APC =
307 x 113

I would really appreciate if any one can help me on this, sorry for any trouble :confused:
 
Upvote 0
try this
Excel Workbook
AB
3Empty cans (can size 211 X 109) Crown211 X 109
4Empty cans (can size 307 x 111) APC307 x 111
5Empty cans ( can size 307 x 112)307 x 112
6Empty cans ( can size 307 x 113)307 x 113
Sheet3
Excel 2007
Cell Formulas
RangeFormula
B3=MID(A3,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&123456789)),9)
B4=MID(A4,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A4&123456789)),9)
B5=MID(A5,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A5&123456789)),9)
B6=MID(A6,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A6&123456789)),9)
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top