Most Frequent Letter in a Column of Four Different Letters

valmir

Board Regular
Joined
Feb 10, 2021
Messages
239
Office Version
  1. 365
Platform
  1. Windows
Hello everyone:
I'm using this formula:
=IF(COUNTIF(G3:G14,"b")>MAX(COUNTIF(G3:G14,"c"),COUNTIF(G3:G14,"q")),"b",IF(COUNTIF(G3:G14,"c")>COUNTIF(G3:G14,"q"),"c","q"))
that I found on this post Here
However this formula works perfectly but only for three letters, not four as I need.
Can anyone help me?
 
IFNA works only for Excel 2013 or later. How about:
Excel Formula:
=IFERROR(INDEX(G3:G14,MODE(IF(G3:G14<>"",MATCH(G3:G14,G3:G14,0)))),"")
I'm using Excel 2010 and this one:
=IF(COUNTIF(G3:G14,"b")>MAX(COUNTIF(G3:G14,"c"),COUNTIF(G3:G14,"q"),COUNTIF(G3:G14,"a")),"b",IF(COUNTIF(G3:G14,"c")>MAX(COUNTIF(G3:G14,"q"),COUNTIF(G3:G14,"a")),"c",IF(COUNTIF(G3:G14,"q")>COUNTIF(G3:G14,"a"), "q",IF(COUNTIF(G3:G14,"a")>0,"a",""))
is working perfectly, so I'll stick to this one. Thanks once again!
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I'm using Excel 2010 and this one:
=IF(COUNTIF(G3:G14,"b")>MAX(COUNTIF(G3:G14,"c"),COUNTIF(G3:G14,"q"),COUNTIF(G3:G14,"a")),"b",IF(COUNTIF(G3:G14,"c")>MAX(COUNTIF(G3:G14,"q"),COUNTIF(G3:G14,"a")),"c",IF(COUNTIF(G3:G14,"q")>COUNTIF(G3:G14,"a"), "q",IF(COUNTIF(G3:G14,"a")>0,"a",""))
is working perfectly, so I'll stick to this one. Thanks once again!
Ok. But if you ever find it dull to type the loooong formula, try Fluff's.
It automatically picks up the value that appears most frequently in a certain range, so you don't need to type all those abc things.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,268
Members
449,149
Latest member
mwdbActuary

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