Hello,
I was searching with Google for a way to extract the numbers from a text string (different numbers of characters) and found a formula that works perfectly. As glad as I am that it solved my problem, I can't figure out how it works. Could someone explain step by step what the formula is doing? I would really appreciate it.
in this example, my text string is in cell D2
Service Invoice line for 88837799 at 520348 Kromles Back Occupant KEL C VAT Recoverable
=LOOKUP(10^6,1*MID($D2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$D2&"0123456789",FIND(" at "," "&$D2&" "))),{2,3,4,5,6}))
Output- 520348
I was searching with Google for a way to extract the numbers from a text string (different numbers of characters) and found a formula that works perfectly. As glad as I am that it solved my problem, I can't figure out how it works. Could someone explain step by step what the formula is doing? I would really appreciate it.
in this example, my text string is in cell D2
Service Invoice line for 88837799 at 520348 Kromles Back Occupant KEL C VAT Recoverable
=LOOKUP(10^6,1*MID($D2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$D2&"0123456789",FIND(" at "," "&$D2&" "))),{2,3,4,5,6}))
Output- 520348