I'm trying to use an array formula in Google Sheets in order to get how many times so far in an array a value has appeared. Specifically, I'm using an "array" of single upper case letters (themselves created using the split function), and I would be using a function to highlight the letters which are over the limit in a certain color.
For example, if a word put in was ZOOTOPIA, the result should be like so:
| Z | O | O | T | O | P | I | A |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 2 | 1 | 3 | 1 | 1 | 1 |
I currently am using =iferror(split(regexreplace(C2, "(.)", "$1_"), "_"),"") to create the array of letters, and I had tried both =ARRAYFORMULA(if(len(D2:2), COUNTIF(D$2:2, D2), "")) - but it only ends up giving the number of times the first letter is used - and =ARRAYFORMULA(if(len(D2:2), COUNTIF(D$2:D2, D2), "")) - which itself always gives a 1