I am using these 3 formulas to return the #1, #2 and #3 top referral source, in other words the value that appears the most times, 2nd most times and 3rd most times. It has been working perfectly until I today when the #2 and #3 happened to appear the same number of times. The result is that the #2 and #3 result are returning the same name.
I tried the large formula but it relies on numerical values, my range contains strings.
Any ideas on how I can fix this or perhaps a different way of returning the top 3 occurring values in a range? is VBA the solution?
1st Most occurring Referral Source
=INDEX(T:T, 10000*MOD(MAX(COUNTIF(T11:T992,T11:T992)+(ROW(T11:T992)/10000)),1), 1)
2nd most occurring Referral Source
=INDEX(T11:T992,MODE(IF((T11:T992<>"")*(T11:T992<>INDEX(T11:T992,MODE(IF(T11:T992<>"",MATCH(T11:T992,T11:T992,0))))),MATCH(T11:T992,T11:T992,0))))
3rd most occurring Referral Source
=INDEX(T11:T992,MODE(IF(((T11:T992<>"")(T11:T992<>INDEX(T11:T992,MODE(IF(T11:T992<>"",MATCH(T11:T992,T11:T992,0)))))(T11:T992<>INDEX(T11:T992,MODE(IF((T11:T992<>"")*(T11:T992<>INDEX(T11:T992,MODE(IF(T11:T992<>"",MATCH(T11:T992,T11:T992,0))))),MATCH(T11:T992,T11:T992,0)))))),MATCH(T11:T992,T11:T992,0))))
I tried the large formula but it relies on numerical values, my range contains strings.
Any ideas on how I can fix this or perhaps a different way of returning the top 3 occurring values in a range? is VBA the solution?
1st Most occurring Referral Source
=INDEX(T:T, 10000*MOD(MAX(COUNTIF(T11:T992,T11:T992)+(ROW(T11:T992)/10000)),1), 1)
2nd most occurring Referral Source
=INDEX(T11:T992,MODE(IF((T11:T992<>"")*(T11:T992<>INDEX(T11:T992,MODE(IF(T11:T992<>"",MATCH(T11:T992,T11:T992,0))))),MATCH(T11:T992,T11:T992,0))))
3rd most occurring Referral Source
=INDEX(T11:T992,MODE(IF(((T11:T992<>"")(T11:T992<>INDEX(T11:T992,MODE(IF(T11:T992<>"",MATCH(T11:T992,T11:T992,0)))))(T11:T992<>INDEX(T11:T992,MODE(IF((T11:T992<>"")*(T11:T992<>INDEX(T11:T992,MODE(IF(T11:T992<>"",MATCH(T11:T992,T11:T992,0))))),MATCH(T11:T992,T11:T992,0)))))),MATCH(T11:T992,T11:T992,0))))