Restaurant Menu Combination calculation

bertolp

New Member
Joined
Apr 26, 2016
Messages
5
Hello all,

I am working a sheet and if possible (as I can't think how it would work) I would like to work out the number of menu combination.

3 - Courses (starters - Must have a main courses - Dessert)
2 Courses (Starter - Must have a main courses) or (Must have a main courses - Dessert)
1 Courses (main course only)

I have three column Starters / Mains / Desserts each containing a value (number)

StartersMainsDesserts
564
241
572

The first line will then give us 4x 3 courses, 5x 1 courses, 1x 1 courses
The second line will then give us 1x 3 courses, 1x 2 courses, 2x 1 courses
The third line will then give us 2x 3 courses, 3x 2 courses, 2x 1 courses

I hope this is clear enough, and I am looking forward for your replies and hopefully a solution!

Thank you
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
you need a table for the food:

tato skins, starter
onion rings, starter
chicken, main
steak, main
key lime, dessert
choc. mousse
etc...

a table for the 3 combos
5 starter, cbo1
6 main,cbo1
4 dessert,cbo1
5 , starter, cbo2
4, main, cbo2
etc

then a form to load them into combo/list boxes

choose combo#, which in turn fills the # of allowed choices the diner(/user) can pick to the 'shopping cart'
end of order, adds all values to the 'order' table.
 
Upvote 0
If you have 4 starters, 5 entrees, and 6 desserts, then the number of 3 course meal combinations is 4 * 5 * 6 = 120. The number of starter/entree combinations is 4 * 5 =20. The number of entree/dessert combinations is 5 * 6 =30. The number of entree only combinations is of course 5. So the total number of combinations is 120 + 20 + 30 + 5 = 175.

If you want to enumerate all the combinations, there are formulas and macros to do that, but it's not especially helpful really. Setting up some kind of drop boxes (as ranman256 suggests) with each type in its own box is more useful.
 
Upvote 0
1614025442991.png


D2 =MIN(A2:C2)
E2 =IF(D2=C2,A2-D2,C2-D2)
F2 =B2-SUM(D2:E2)
 
Upvote 0
Solution
This is an interesting one!

It's something along the lines of:

X(s+m+d) + Y(s+m) + Z(m+d) + A(m) = 5s + 6m + 4d (taking the first row).

and you need to work out possible values for X,Y,Z and A? There are a few combinations for that first example, so I don't think you could possibly know the "correct" answer, but you could give a few possibilities

For example, X=4, Y=1, Z=0,A=1 would yield the correct result, but so would X=3, Y=1,Z=1,A=0.

Is this what you're looking for? To return all the possibilities? That would be an interesting challenge!
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,930
Members
449,094
Latest member
teemeren

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