I am understanding up to the point of the arrays, when we get to the MIN part, you say the MIN returns the first digit in the text, so what happens or when does it pick up the second or third digits in the text if the min is only picking up the first ? Also at the end you have the -1 as part of the left function but if we are only minus one figure how will it minus text that have two digits or three digits. so as per your first formula
=LEFT(A1,LEN(A1)-1)
the minus 1 here takes away the one digit how is this same function taking away multiple digits ?
Lets use a specific example and work through it to see if that helps you to see what is happening. This is what we have...
A1: UK836
B1: =LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)
Okay, examining the parts using colors..
=LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},
A1&"0123456789"))-1)
The above red part means the text that will be searched is this...
UK8360123456789
since all we did is concatenate the ten digits on the back of it. Remember, we did this so a search for any digit will find it somewhere even if that somewhere is after the end of the original text. So this is our formula now...
=LEFT(A1,MIN(FIND(
{0,1,2,3,4,5,6,7,8,9},"UK8360123456789"))-1)
The red part is called an array constant (the curly braces mark its beginning and end, the values inside must be a comma delimited list of constants). The way array constants works is each member of the array is presented to the function (FIND in this case) and evaluated individually, then all those values are placed in an array and returned by the function. So, first, FIND looks for 0 and finds it at position 6... next FIND looks for 1 and finds it at position 7... next FIND looks for 2 and finds it at position 8... next FIND looks for 3 and finds it at position 4... next FIND looks for 4 and finds it at position 10... next FIND looks for 5 and finds it at position 11... next FIND looks for 6 and finds it at position 5... next FIND looks for 7 and finds it at position 13... next FIND looks for 8 and finds it at position 3... next FIND looks for 9 and finds it at position 15. All those found position numbers form an array constant that looks like this...
{6,7,8,4,10,11,5,13,3,15}
which replaces the FIND function entirely meaning our formula becomes this...
=LEFT(A1,MIN(
{6,7,8,4,10,11,5,13,3,15})-1)
The argument to the MIN function is the array constant that FIND produced... the minimum value it returns is 3 (the next to last value in the array)... that is the position number of the first digit it found when it calculated the position numbers of all the individual digits it searched for. So our formula now becomes this...
=LEFT(A1,
3-1)
which reduces to...
=LEFT(A1,2)
and that evaluates to UK which is the text part of A1 without the ending digits.