I cant find the formula for "most used" ?

slamanager

Board Regular
Joined
Apr 20, 2007
Messages
129
Hi,

Is there a formula to show the highest frequency of text in a column.
I thought i had a formula but looking through my example sheet i must have done this before manually.

col A
t1
t1
t1
t2
t2
t2
t2

so the answer is 4 i dont need the actual col A ref or detail.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

Is there a formula to show the highest frequency of text in a column.
I thought i had a formula but looking through my example sheet i must have done this before manually.

col A
t1
t1
t1
t2
t2
t2
t2

so the answer is 4 i dont need the actual col A ref or detail.
Try this array formula**:

=MODE(MATCH(A2:A8,A2:A8,0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

If there aren't any duplicates then you'll get an error.
 
Upvote 0
Hi

Try:

=MAX(COUNTIF(A2:A8,A2:A8))

This in an array formula, you have to confirm it with CTRL+SHIFT+ENTER.
 
Upvote 0
pgc01
What would need to be added to the "=max(countif(" formula if you wanted to know that t2 was most used?
 
Upvote 0
pgc01
What would need to be added to the "=max(countif(" formula if you wanted to know that t2 was most used?
Like this...

Both formulas are array formulas**.

=INDEX(A2:A8,MODE(MATCH(A2:A8,A2:A8,0)))

=INDEX(A2:A8,MATCH(MAX(COUNTIF(A2:A8,A2:A8)),COUNTIF(A2:A8,A2:A8),0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

As you can see the MODE(MATCH version is much shorter.
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,317
Members
452,905
Latest member
deadwings

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