Search code examples
excelvbaexcel-formulaformulaexcel-2013

Need help in MS Excel for extraction


Need help to extract alphanumeric string from a cell IN EXCEL 2013/2016 Example cells:

Tom Jomes 10102230SP01001 Payment
Jonas Haul 550R202202230016 Car
Holland motors 10102230C002001
Jeevan 0073669900002 cc

Need below result in new cell against the above:

10102230SP01001
550R202202230016
10102230C002001
0073669900002

Thanks in advance


Solution

  • From your current sample you may utilize FILTERXML() function.

    =FILTERXML("<t><s>"&SUBSTITUTE(A1," ","</s><s>")&"</s></t>","//s[translate(.,'1234567890','')!=.]")
    

    Details here from JvdV

    enter image description here