I need to get a count of the number of occurrences of each of the letters (A-Z) in a range.
The input range contains names like this:
ALICE
FRED
SALLY
MARK
HENRY
JUDY
The output would be another range like this
A 3
B 0
C 1
D 2
E 3
… …
Z 0
I'd like to be able to call the UDF like this: =LetterTally(B2:B75,E2).
B2:B75 is the input range.
E2 is the upper left hand corner of the output range.
The names should all be upper case, but the tally should be case insensitive (A=a).
Can someone get me started? I am having trouble setting up the output array and using the letters to index into it?
I'm also having trouble with how to write the result to the sheet. If this is not possible, it's OK to write to a text file or even just display it on the screen.
Thanks
Bookmarks