Generate random lotto numbers in groups

Blackballexpress

New Member
Joined
Jun 27, 2012
Messages
5
Hi all,

Can anyone help me please:

I am trying to generate random lotto in 8 groups of 8 rows each.

The aim is to have 8 groups with the following criteria.
  • numbers appears only once per group;
  • if 16 & 27 appears together in the same row in group 1, it does not appear together again in any row of the other groups;
Optional

  • There should be no 4 number combinations in the rows that was previously selected in draws.

I am currently using the following formula:
Sheet = Calculations
In the culumns I have:
All formulas is dragged down
A =RAND()
B =RANK($B3;$B$3:$B$54)+COUNTIF(C$2:C2;C2)-1

BCDEFGHIJ
1RandUnique RankBall Number123456
20,102220611511789101112
30,20398705442131415161718
40,477662672323192021222324
50,552747222274252627282930
60,506884168305313233343536
70,384547559366373839404142
80,752876494167434445464748
90,204919304438
100,347860702379
110,991859907210
120,5481260332811
130,4531215193312
140,1974567594513
150,7084825632014
160,1154055115
170,2593584554016
180,1750127734717
190,8136519191218
200,1277230264919
210,91282479820
220,432803533421
230,1176883825022
240,950455468623
250,7186286971924
260,8351589821025
270,960684958326
280,2489495974127
290,911179321928
300,615019372429
310,4052033673530
320,960485786431
330,4781302913132
340,6097049782533
350,6539393782234
360,6894072962135
370,2422651484236
380,957641772537
390,7700383721538
400,7383118751839
410,0730656675240
420,6174140672341
430,1749123594842
440,5324593042943
450,2715444943944
460,7903501281345
470,7712159451446
480,1759586434647
490,948371839748
500,3437351373849
510,6045714722650
520,8347532121151
530,7386438481752

<tbody>
</tbody><colgroup><col><col><col><col><col span="6"></colgroup>

Sheet = Draws
In the culumns I have:
All formulas is dragged down
B =VLOOKUP(Calculations!E2;Calculations!$C$3:$D$54;2;FALSE)
C =VLOOKUP(Calculations!F2;Calculations!$C$3:$D$54;2;FALSE)
D =VLOOKUP(Calculations!G2;Calculations!$C$3:$D$54;2;FALSE)
E =VLOOKUP(Calculations!H2;Calculations!$C$3:$D$54;2;FALSE)
F =VLOOKUP(Calculations!I2;Calculations!$C$3:$D$54;2;FALSE)
G =VLOOKUP(Calculations!J2;Calculations!$C$3:$D$54;2;FALSE)

BCBEFG
111026313723
2482028255118
345463875239
4241435344129
53350411435
63231221306
794944162736
88213471742

<tbody>
</tbody><colgroup><col span="8"></colgroup>
Thank you very much!!!!!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,422
Messages
6,124,811
Members
449,191
Latest member
rscraig11

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