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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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.
 
Upvote 0
wait, it didn'nt work for me.

I got #N/A

could it be because my list of names is in colums, not rows?
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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