I have been able to successfully input the most frequently occurring text in a range based on criteria by using an array formula based on the INDEX, MATCH, MODE, and IF functions.
I also need to find the 2nd most frequent occuring text in a range based on criteria as well as the 3rd most frequent using a variation of the formula but don't know how to go about editing the formula to accomplish this.
Here is the formula I created to get most frequent state based on ID: =INDEX(State,MODE(IF(ID =D3,MATCH(State,State,0)))) where ID = A2:A22 and State = B2:B22. I am unable to share a screenshot but will add as a table below.
Bookmarks