Can you display the most common text value in a Column

fugeg70

Board Regular
Joined
Mar 26, 2003
Messages
114
Hello all,

Wonder if you can help.

Is there a formula to show the most common text value in a column.

I am trying to get a simple of display of what areas people work in most?

Thanks,

Graham.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
fugeg70 said:
Hello all,

Is there a formula to show the most common text value in a column.

I am trying to get a simple of display of what areas people work in most?

Thanks,

Graham.

try this:
=LOOKUP(MAX(COUNTIF(A1:A21,A1:A21)),COUNTIF(A1:A21,A1:A21),A1:A21)
where the values are in A1:A21

end with Shift Ctrl Enter
 
Upvote 0
fugeg70 said:
This works perfectly...

I have to disagree...
aaModeOrMostFrequent fugeg70 after olly_w.xls
ABCDE
1NameCountRank1
2XZA211
3XZA  MostFreq
4SDA22XZA
5CFA13SDA
6SDA   
7XFA14 
8PQA15 
9
10
Sheet1


Formulas...

B2, copied down:

=IF(ISNUMBER(MATCH(A2,$A$1:A1,0)),"",COUNTIF($A$2:$A$8,A2))

C2, copied down:

=IF(N(B2),RANK(B2,$B$2:$B$8)+COUNTIF($B$2:B2,B2)-1,"")

E1 houses 1 (meaning: Top 1).

E2:

=MAX(IF(INDEX(B2:B8,MATCH(E1,C2:C8,0))=B2:B8,C2:C8))-E1

which must be confirmed with control+shift+enter instead of just with enter.

E4, copied down:

=IF(ROW()-ROW($E$4)+1<=$E$1+$E$2,INDEX($A$2:$A$8,MATCH(ROW()-ROW($E$4)+1,$C$2:$C$8,0)),"")
 
Upvote 0
How about to show not just the most frequently occurring text string (max) but to show the top 5 or 10 - would you replace the max function with the rank function within the array formula?>
 
Upvote 0
jsussell said:
How about to show not just the most frequently occurring text string (max) but to show the top 5 or 10 - would you replace the max function with the rank function within the array formula?>

Just replace the parameter (Top N) specification in E1, which is 1 above, with 5 or 10.
 
Upvote 0
I was hoping to do this within the context of an array formula, because of the sheer volume of data, multiple formulae/cell spread out across the sheet would be pretty bulky. . . . any suggestions?
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

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