Most frequently combination of numbers

cipirica

New Member
Joined
Mar 23, 2021
Messages
21
Office Version
  1. 2019
Hello everyone. I have this table
1​
2​
3​
4​
5​
6​
7​
8​
9​
10​
11​
12​
13​
14​
15​
16​
17​
18​
19​
20​
21​
22​
23​
24​
25​
26​
27​
28​
29​
30​
31​
32​
33​
34​
35​
36​
5​
9​
10​
15​
16​
31​
32​
33​
34​
4​
8​
15​
17​
20​
21​
23​
24​
25​
28​
29​
35​
1​
7​
9​
12​
19​
22​
26​
28​
31​
36​
1​
2​
6​
8​
10​
12​
16​
18​
20​
21​
24​
26​
31​
5​
6​
10​
16​
25​
35​
36​
First row contains the headers. I want a vba code that will compare all the rows and tell me which are the combinations of n numbers that appear most frequently on a row. for example the numbers 4,17,35 appear most frequently together, 4 times. I mention that periodically other rows will be added to the table. If you also know a dynamic formula, it would be even better. Mode.mult does not work. thank you all and I look forward to your ideas.
 

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.

Forum statistics

Threads
1,226,121
Messages
6,189,088
Members
453,524
Latest member
AshJames

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