Explanation
This formula uses theMATCH functioninapproximate match modeto locate the last text value in a range.
To do that, we use theREPT functionto repeat the letter “z” 255 times.
The number 255 represents the largest number of characters that MATCH allows in a lookup value.
MATCH supports approximate and exact matching, andwildcards(* ?)
For example, =REPT(“x”,5) returns “xxxxx”.