Loop set of 3, within 5 results

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,415
Office Version
  1. 2010
Using Excel 2010

Hello, I got lottery results in column D:H approximately 2000+ rows, and set of triples in column K:M, I need a VBA which can loop set of 3… through column D:H and generate the count result in column O as shown in small example below

Count Triples And Find Dealy MrExcel.xlsm
ABCDEFGHIJKLMNOP
1
2Results
3Need VBA
4Draw S.NResultsTo Count
5Draw S.Nn1n2n3n4n5TriplesJoin TriplesTriples
6113/02/2004162932364116293216 | 29 | 322
7220/02/200416132932501251 | 2 | 53
8327/02/2004010205313712261 | 2 | 260
9405/03/2004010204053914161 | 4 | 160
10512/03/2004152428444714371 | 4 | 370
11619/03/2004333637424515211 | 5 | 211
12726/03/200403041023432782 | 7 | 80
13802/04/20040412242736629486 | 29 | 480
14909/04/20040105211923722487 | 22 | 480
151016/04/20040102030405912259 | 12 | 250
161123/04/2004061021454915182215 | 18 | 222
171230/04/2004050616232724273224 | 27 | 320
181307/05/2004151621363816293216 | 29 | 322
191414/05/200401032132391251 | 2 | 53
201521/05/2004152937394912261 | 2 | 260
211628/05/2004061135414414161 | 4 | 160
221704/06/2004091334414214371 | 4 | 370
231811/06/2004151822104715211 | 5 | 211
241918/06/200402232840432782 | 7 | 80
252025/06/20040321303435629486 | 29 | 480
262102/07/20040423242834722487 | 22 | 480
272209/07/20041516181922912259 | 12 | 250
282316/07/2004242631385015182215 | 18 | 222
292423/07/2004071027313424273224 | 27 | 320
302530/07/2004091019375016293216 | 29 | 322
312606/08/200405152435441251 | 2 | 53
322713/08/2004202741435012261 | 2 | 260
332820/08/2004060910273514161 | 4 | 160
342927/08/2004011122284414371 | 4 | 370
35
36
Sheet1


Regards,
Moti
 
Hello Phuoc, this is amazing, I tried with my original data as per post#3 layout with 1700+ rows result in column D:H and 65000+ quads in the column K:N, it took only and only 21 second to finish. 😍

I appreciate your help. Have a pleasant time. Good Luck.

Best Regards,
Moti :)
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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