Hi,
I like the Deepak's solution but was not able to understand them quite well. My bad
.
At the same time, for your question, you can extend D's solution with & and repeat the formula, with substituing A2 with same formula again.
=--MID(A2,MATCH(TRUE,ISNUMBER(--MID(A2,ROW(1:99),10)),0),10) & --MID(SUBSTITUTE(A2,--MID(A2,MATCH(TRUE,ISNUMBER(--MID(A2,ROW(1:99),10)),0),10),""),MATCH(TRUE,ISNUMBER(--MID(SUBSTITUTE(A2,--MID(A2,MATCH(TRUE,ISNUMBER(--MID(A2,ROW(1:99),10)),0),10),""),ROW(1:99),10)),0),10)
Entered as CSE.
I know this is nasty,
, until you find better solution from D or other Excel Experts.
Regards,
Prasad DN
PS: the key point is in your data set, the first set of number should be 10 digits, and second set can be upto 10 digits.
Also, the number should not be exactly same.