A very helpful trick is using the
F9 key to highlight
a part of a formula, which shows you what it evaluates to. For example, if you have values 1,2,3 in A1,B1 and C1, and a formula =A1+(B1+C1), then select and highlight (B1+C1) in the formula bar, and hit F9, you will see 5, which is 2 + 3. (NOTE, hit ESCAPE to get out of this display, otherwise the conversion becomes a permanent one).
Doing the same with your "complex formula", you work inside out:
Concatenate A2 with the value "0123456789"
Code:
[COLOR="Blue"]A2&"0123456789"[/COLOR]
Find the first location of each of the values from 0 to 9 in the concatenated value above.
Code:
[COLOR="blue"]SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789")[/COLOR]
Find the lowest/minimum values from the set of numbers returned above.
Code:
[COLOR="blue"]MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))[/COLOR]
Subtract 1
Code:
[COLOR="blue"]MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1[/COLOR]
Take the left characters in A2 from the first to the one at the number location above.
Code:
[COLOR="blue"]LEFT(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1)[/COLOR]
Remove any leading and trailing spaces
Code:
[COLOR="blue"]TRIM(LEFT(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1))[/COLOR]
It appears this formula would return text with any numeric values stripped off off from the right side. As you can see, it is built from a number of more or less simple formulas, to achieve a fairly sophisticated goal. Another way to "decompose" these formulas is to
break each step into a separate cell. In this case, you could put the search formula in Cell B2, the Min formula in Cell C2 (referencing the result in B2), the Left formula in Cell D2 (referencing the result in C2), and the Trim formula in Cell E2 (referencing the result in D2). E2 would also be the final calculation and the answer.
Hope this helps. In my opinion, using search with set of values to create a resulting set of values is not common and the formula is quite clever - someone who knows Excel very well probably created this.