Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is there a way of finding maximum occurrence of a character in a given string?
Example: In the string "RAGR", "R" has occurred twice.
The string will always have just one character occurring multiple times and there won't be any stalemate.
Thanks.
Didn't you mention that there will only be one character repeating?
"The string will always have just one character occurring multiple times and there won't be any stalemate."
Checking now
This will work for numbers, but not text
=Left(Trim(Concat(DISTINCT Mid(Field, ValueLoop(1, 100), 1), '', -(SubStringCount(Field, Mid(Field, ValueLoop(1, 100), 1))*100 + Alt(Mid(Field, ValueLoop(1, 100), 1), 0)))), 1)
Thanks Sunny. This works!
Super, but remember this may or may not work for string character.... that might need some more modifications. Would you need that?