a mode function that works on text?

basher450

New Member
Joined
Jan 26, 2005
Messages
23
hi

very simple, I have 10 cells that have text strings in each one. (10 names of people to be exact)

and I want to know which one (of those names) appears more than others.

the mode function is just what would work for me in case these were numbers.

what can I use in this case? [/b]
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
This seems to work for me:
Book1
ABCD
1JonJim
2Bill
3Tess
4Jim
5Carol
6Jim
7Lisa
8Rosa
9Tim
10Jim
Sheet1


Formula in C1 is:
=INDEX(A1:A10,MATCH(MAX(COUNTIF(A1:A10,A1:A10)),COUNTIF(A1:A10,A1:A10),0))

Note: This is an array formula. You must press Ctrl+Shift+Enter for the formula to work correctly. If you enter the formula and just press enter as normal, it will not work.
 

basher450

New Member
Joined
Jan 26, 2005
Messages
23
wait, it didn'nt work for me.

I got #N/A

could it be because my list of names is in colums, not rows?
 

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Change the cell references in the formula to whatever range you're trying to check, and remember to press ctrl+shift+enter to enter the formula, not just enter. If you have to, select the cell, press F2 and then press ctrl+shift+enter and see if the result changes from the N/A.
 

Forum statistics

Threads
1,148,525
Messages
5,747,194
Members
424,068
Latest member
Salim khamis

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
Top