dnickelson
Board Regular
- Joined
- Oct 30, 2003
- Messages
- 118
Looking to create a list of the number of times each text occurs within a list, as well as sort this list from most to least occurrences.
the list changes often and can contain up to 20 different text entries, but not necessarily any specific one
a
a
a
a
b
b
e
c
d
e
e
e
c
d
f
g
should return
a 4
e 3
b 2
c 2
d 2
f 1
g 1
am using an example I found on the board for another issue. This returns the text that occurs the most often easily enough, and with a little modification on the LARGE parameters, I can get the next few in line, but once it gets down to the 8th or 9th largest occurrences, and it starts to be only 3 or fewer entries, it starts flaking out, reporting more entries that really exist, not in a recognizeable order in the COUNTIF array (not recognizable to me anyway.
=INDEX(A$10:A$117,MATCH(LARGE(COUNTIF(A$10:A$117,A$10:A$117),C1),COUNTIF(A$10:A$117,A$10:A$117),0))
Any other ideas? the above was a Ctrl+Shift+Enter formula btw
the list changes often and can contain up to 20 different text entries, but not necessarily any specific one
a
a
a
a
b
b
e
c
d
e
e
e
c
d
f
g
should return
a 4
e 3
b 2
c 2
d 2
f 1
g 1
am using an example I found on the board for another issue. This returns the text that occurs the most often easily enough, and with a little modification on the LARGE parameters, I can get the next few in line, but once it gets down to the 8th or 9th largest occurrences, and it starts to be only 3 or fewer entries, it starts flaking out, reporting more entries that really exist, not in a recognizeable order in the COUNTIF array (not recognizable to me anyway.
=INDEX(A$10:A$117,MATCH(LARGE(COUNTIF(A$10:A$117,A$10:A$117),C1),COUNTIF(A$10:A$117,A$10:A$117),0))
Any other ideas? the above was a Ctrl+Shift+Enter formula btw