Find most combinations of numbers.

MPFX2022

New Member
Joined
Nov 24, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Greeting all,
I'm trying to find the most ordered combination of menu items.
The sample pic Ive uploaded shows the customer and what number from menu they ordered.
So customer 1 and 10 ordered the same items..
I want to find the top 5 combinations from over 2000 orders..
This table is just an example to make things easier.
Ive tried filters but cant find anything. Is there a countif formula that would work perhaps?
ANY help would be greatly appreciated 🙏🙏


Menu.png
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Thanks heaps for reply, but this wont work for what I need. The thing is each number represents an item. eg 4 = Caesar salad, 21 = pancakes. So sum of numbers could be multi combinations. eg 5+10 + 6 = 21. and so does 8+12+1 etc etc... I had thought of your method.
What I need is to find how often the combo of individual numbers comes up.
So Customer 1 and Customer 10 both ordered the same thing. items 4, 8, 9. So this = twice I need to find how often each combo comes up. Hope this makes sense??
It took a little bit for me to wrap my head around what you needed, and I think I have it. Feel free to give me a huge thumbs down if I haven't.

There's a few steps here:

1701144204211.png


SORT
You have to sort each row first either from ascending to descending or vice versa.
I46 = SORT(E46:G46,1,1,1)

COMBINATION
Then concatenate each sorted section.
M46 =CONCATENATE(TEXT(I46,"dd"),TEXT(J46,"dd"),TEXT(K46,"dd")). I used the Text format for a smoother look, but you don't need to.

COUNT
You need to count how many of each combination there are.
=IF(M46<>"",COUNTIF($M$46:M46,M46),"0")

1st, 2nd & 3rd
=LARGE(O46:O55,ROW(A1))

Each formula can be dragged down as many times as you need.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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