On Tue, 27 Feb 2007 09:23:00 -0800, Igneshwara reddy <Igneshwara
How to extract numbers from a alphanumeric cell.
Eg: If a cell contains fdsfa24655, my result should be 24655
If a cell contains fd123fds, my result should be 123.
This assumes your numbers are sequential within the string:
Define a name, seq, (per Harlan Grove) as
=ROW(INDEX(Sheet1!$1:$65536,1,1):INDEX(Sheet1!$1:$65536,255,1))
Insert/Name/Define
Names in Workbook: seq
Refers To: (the above formula)
Then, with, for example, your cell = A1, use this **array** formula:
=MID(A1,MATCH(TRUE,ISNUMBER(-MID(A1,seq,1)),0),
MATCH(FALSE,ISNUMBER(-MID(MID(A1,1+MATCH(
TRUE,ISNUMBER(-MID(A1,seq,1)),0),255),seq,1)),0))
To enter an array formula, after putting the formula into the formula bar, hold
down <ctrl><shift> while hitting <enter>. Excel will place braces {...} around
the formula.
--ron