I have a list of inputs in google sheets,
| Input | Desired Output | "To demonstrate only not an input" The repeated letters |
|---|---|---|
| Outdoors | Match | o |
| dog | No Match | |
| step | No Match | |
| bee | Match | e |
| Chessboard | Match | s |
| Cookbooks | Match | o, k |
How do I verify if all letters are unique in a string without splitting it?
In other words if the string has one letter or more occurred twice or more, return TRUE
My process so far
I tried this solution in addition to splitting the string and dividing the length of the string on the COUNTA of unique letters of the string, if = 1 "Match", else "No match"
Or using regex
I found a method to match a letter is occure in a string 2 times this demonstration with REGEXEXTRACT But wait what needed is get TRUE when the letters are not unique in the string
=REGEXEXTRACT(A1,"o{2}?")
Returns:
oo
Something like this would do
=REGEXMATCH(Input,"(anyletter){2}?")
OR like this
=REGEXMATCH(lower(A6),"[a-zA-Z]{2}?")
Notes
- The third column, "Column C," is only for demonstration and not for input.
- The match is case insensitive
- The string doesn't need to be splitted to aviod heavy calculation "I have long lists"
- Avoid using lambda and its helper functions see why?
- Its ok to return
TRUEorFALSEinstead ofMatchorNo Matchto keep it simple.
More examples
| Input | Desired Output |
|---|---|
| Professionally | Match |
| Attractiveness | Match |
| Uncontrollably | Match |
| disreputably | No Match |
| Recommendation | Match |
| Interrogations | Match |
| Aggressiveness | Match |
| doublethinks | No Match |



