MODE for strings in range (not array)

EducationWarrior

New Member
Joined
Jan 20, 2011
Messages
2
I would like to determine the most frequent occurrence of a string within a range (not just a column). If all strings are within a column, I can use =INDEX(array,MATCH(MAX(COUNTIF(array,array)),COUNTIF(array,array),0)), but this does not work when the data is distributed across a range with n columns and m rows. Any ideas on how to do that without having to rearrange everything into a column (or row)?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
No doubt far better methods but one possibility:

Excel Workbook
ABCDE
1applesapplesbananasdogs
2bananascarsbananas
3bananasapplescars
4dogsdogsbananas
5dogscarsdogs
6dogsdogsbananas
7applescarscars
8bananasdogsapples
9applesdogscars
10carscarsdogs
Sheet4


edit: reloaded screenshot (MODE should be MAX)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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