MODE vs INDEX vs LOOKUP

William Groff

New Member
Joined
Sep 24, 2016
Messages
5
I'm trying to calculate the frequency of recurring numbers from multiple columns. I used MODE (=MODE($B$4:$B$108))) in the first row for the most frequent number, and for the 2nd most frequent I used

=INDEX(ROW(INDIRECT("B"&MIN($B$4:$B$108)&":B"&MAX($B$4:$B$108))),MATCH(LARGE(FREQUENCY($B$4:$B$108,ROW(INDIRECT("B"&MIN($B$4:$B$108)&":B"&MAX($B$4:$B$108)))),2),FREQUENCY($B$4:$B$108,ROW(INDIRECT("B"&MIN($B$4:$B$108)&":B"&MAX($B$4:$B$108)))),FALSE))

However, when I change highlighted number to '3' for the third most frequent (and so on for 4th and 5th), I end up with a repeated number. The second (and subsequent) formula was entered as an array, but after three days, I've given up trying to figure it out. I really do need help understanding what I am doing incorrectly.

Thanks in advance for any assistance you can provide.


This table is supposed to report the highest frequency occurrence for each column of the source data, in descending order (with 5th highest frequency on the bottom - rank order). The actual results are shown in each cell. As you can see, some numbers repeat.
HIJKLMNO
1RANK123456
213285064698
3252521596425
4321221296712
542111531613
652111529613

<tbody abp="1111">
</tbody>



Table with source data:


A B C D E F G
DATE123456
2-Jan-20165615294210
6-Jan-201621147626317
9-Jan-2016161932345713
13-Jan-20164819273410
16-Jan-20163515261646
20-Jan-201653944476924
23-Jan-2016223234406919
27-Jan-201631240526721
30-Jan-201651216314318
3-Feb-201626283136528
6-Feb-20164133136528
10-Feb-2016234050625
13-Feb-201671518193620
17-Feb-201671727294025
20-Feb-2016111215165425
24-Feb-201621316465675
27-Feb-2016101121225318
2-Mar-2016121344526219
5-Mar-201632734596919
9-Mar-201614233234683

<tbody abp="826">
</tbody><colgroup abp="1022"><col abp="1023"><col span="5" abp="1024"><col abp="1025"></colgroup>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

if J2 houses

=MODE(B$4:B$108)

in J3 (array entered) to be copied across:

=MODE(IF(COUNTIF(J$2:J2,B$4:B$108)=0,B$4:B$108))

Hope it helps
 
Upvote 0
@William Groff

Does the upper exhibit showing your formula results or the desired results i.e. the results which must obtain?
 
Upvote 0
Cross posted here: MODE vs INDEX

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule #13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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