mode for text-strings ?

alcorjr

Active Member
Joined
Dec 29, 2002
Messages
416
Hi everybody,

Is there a function that can return the most frequently appearing text string from a range?

Thanks.
 
This formula

=INDEX(Rng,MATCH(MAX(COUNTIF(Rng,Rng)),COUNTIF(Rng,Rng),0))

array entered (That is, with Control Shift Enter, not just Enter), will return the (first) most common string in the range Rng

This formula works great.

How can I tweak to get the second highest, third highest? Need the top 5
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Is this for Excel or Google sheets?
 
Upvote 0
Not sure about the original poster, but I have used it on Google Sheets and it works. Should work on excel though as well
 
Upvote 0

Forum statistics

Threads
1,224,112
Messages
6,176,431
Members
452,728
Latest member
mihael546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top