Most frequently occurring text in array formula

jdmc45

Board Regular
Joined
May 8, 2011
Messages
146
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am trying to create a formula which finds the most frequently occurring text value (all entries all text) in an areay

I am using INDEX(D4:D7,MODE.SNGL(MATCH(D4:D7,D4:D7,0))) but this only works for single columns or single rows not a 3x3 or ZxZ array for example

Can someone please help?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Which version of Excel are you using?
 
Upvote 0
You can turn it into a single column using TOCOL()
Book1
ABCDEFG
1ESZDBB
2WRVVB
3XYHPU
4FTUQZ
5NBUVY
Sheet2
Cell Formulas
RangeFormula
G1G1=LET(t,TOCOL(A1:E5,3),INDEX(t,MODE.SNGL(MATCH(t,t,0))))
 
Upvote 1
Use MODE.MULT if there are tie-breakers.
Excel Formula:
=LET(t,TOCOL(A1:E5,3),INDEX(t,MODE.MULT(MATCH(t,t,0))))
 
Upvote 1
Microsoft 365 MSO version 2401 64 bit

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
You can turn it into a single column using TOCOL()
Book1
ABCDEFG
1ESZDBB
2WRVVB
3XYHPU
4FTUQZ
5NBUVY
Sheet2
Cell Formulas
RangeFormula
G1G1=LET(t,TOCOL(A1:E5,3),INDEX(t,MODE.SNGL(MATCH(t,t,0))))
Thanks - this worked well.

How would I go about finding the second and third most common test value here please ? Extending the above
 
Upvote 0
Maybe this. You can change the n-th largest in cell H1.
Book1
ABCDEFGH
1ESZDBn-th largest2
2WRVVBV
3XYHPU
4FTUQZ
5NBUVY
Sheet1
Cell Formulas
RangeFormula
H2H2=LET(d,TOCOL(A1:E5),f,BYROW(UNIQUE(d),LAMBDA(br,ROWS(FILTER(d,br=d)))), CHOOSEROWS(SORTBY(UNIQUE(d),f,-1),H1))
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,180
Members
452,615
Latest member
bogeys2birdies

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