Horse Racing Combinations - Trifecta (Without Macro)

jmcalabaza

New Member
Joined
Mar 26, 2015
Messages
2
Hello Everyone!

Well, I am trying to gather all possible combinations for 10 horses for 3 place finishers. The 3 place finish is to illustrate a trifecta ticket. Example:

1-2-3
1-2-4
1-2-5
1-2-6
.
.
.
2-3-6
2-4-5
2-8-9


I understand for 10 horses, I should have a total of 720 combinations for a trifecta group. I really need help and I cannot figure out what formulas to use to achieve this. Also, I would like the formula to immediately toss out duplicates like (1-2-2, 2-2-4, etc.) in which that the #2 horse cannot finish in 2nd or 3rd place - only one place.

Thank you for your attention to this headache and I hope to hear from someone soon!

Jon
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Welcome to the Forum!

Much easier with VBA, but try these formulae, copied down the columns:

B2: =1+MOD(A2-1,NoHorses)
C2: =MOD(INT((A2-1)/NoHorses),NoHorses-1)+IF(1+MOD(INT((A2-1)/NoHorses),NoHorses-1)>=B2,1,0)+1
D2: =INT((A2-1)/NoHorses/(NoHorses-1))+1+IF(1+MOD(INT((A2-1)/NoHorses/(NoHorses-1)),NoHorses)>=MIN(B2:C2),IF(MOD(1+INT((A2-1)/NoHorses/(NoHorses-1)),NoHorses)+1>=MAX(B2:C2),2,1),0)

where NoHorses=10

The pattern will be easier to see if you Copy/Paste Values, and then sort on Column B/Column C.

Excel 2010
ABCD
1Combinations1st2nd3rd
21123
32213
43312
54412
65512
76612
87712
98812
109912
11101012
1211132
1312231
1413321
1514421
1615521
17….
187201098

<tbody>
</tbody>
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,835
Messages
6,121,880
Members
449,057
Latest member
Moo4247

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