0

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

JvdV
  • 70,606
  • 8
  • 39
  • 70
  • 3
    Questions that just state what you need are off-topic on SO. Please refer to [ask] a question with a [mcve]. Include the formula/VBA-code you tried and let us know what didn't work for debugging purposes. – JvdV Mar 22 '22 at 08:14

1 Answers1

4

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

Harun24hr
  • 30,391
  • 4
  • 21
  • 36