I'm trying to write a Google Sheets function that does the same as the MODE function, but for non-numeric values: returning the most frequently occuring string in a specified range.
I've searched the entire internet, and everywhere it's being suggested to use
=index(G2:L2, match(max(countif(G2:L2; G2:L2)), countif(G2:L2;G2:L2), 0))
or similar. This however returns an #ERROR!
, which kind of leads me to believe that the correct syntax must have changed somehow… The range values are not even being highlighted in orange, as it usually does.