Lotto Forums
Click Here For Your Free Lottery Report

Go Back   Lotto Forums > Lotto Forums Players Toolbox > Lotto Tips & Strategies

Lotto Tips & Strategies Methods and Systems for Winning the Jackpot.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2009, 03:48 AM
patron patron is offline
Registered User
 
Join Date: Nov 2007
Location: Greece
Posts: 30
Excel help ....

Dear all
First of all, happy new year, and best wishes for you and your families..

I'm trying to make an excel macro.
Let's say that i have my data in excel spreedsheet (O4:Y403)
the data above is 400 sets of combinations for Greek lotto 649, that was created from "LottoSelectorXLp" Respect to nick koutras.
What i was trying to do is to construct a excel macro to identify and count the unique combinations.
Each set of combination has 11 numbers.

If you have an idea, please reply
Reply With Quote
  #2  
Old 01-15-2009, 11:57 PM
GillesD's Avatar
GillesD GillesD is offline
Registered User
 
Join Date: Oct 1999
Location: Montréal
Posts: 715
Excel help

May be I could help you but I do not really understand your need.

Out of your 400 lines with each 11 numbers, between 1 and 49, I assume, what do you mean by "... identify and count the unique combinations..."?

Basically, for each line of 11 numbers, you can make 462 6-numbers different combinations. So with 400 lines, you could come up with 184,800 combinations. There may be some duplicates but I doubt somebody could come up with the number of unique combinations, unless the individual of numbers on each line are known or at least the method to generate them.

Give a pratical example of what you want and then may be ...
Reply With Quote
  #3  
Old 01-16-2009, 05:40 AM
patron patron is offline
Registered User
 
Join Date: Nov 2007
Location: Greece
Posts: 30
Dear GillesD

thank you for your reply.
Let's say my data is:
1 2 3 4 5 6 7 8 9 10 11
1 2 3 4 5 6 7 8 9 10 11
5 6 7 8 9 10 11 12 13 14 15
1 2 3 4 5 6 7 8 9 10 11
3 4 5 6 7 8 9 10 11 12 13
5 6 7 8 9 10 11 12 13 14 15
e.t.c. (400 lines, and each line 11 cells)

Basically i want this macro to find how many diferent combinations i have and count them..

Thanks in advance.
Reply With Quote
  #4  
Old 01-16-2009, 02:54 PM
GillesD's Avatar
GillesD GillesD is offline
Registered User
 
Join Date: Oct 1999
Location: Montréal
Posts: 715
Number of unique sets of data

A simple and effective way although not the only way to achieve what you want could be:

1 - In cell Z4, enter the formula: =O4&P4&Q4&R4&S4&T4&U4&W4&X4&Y4 to generate a string with the eleven numbers and copy it down to line 403.

2 - Then sort the data based on values in column Z.

3 - In cell AA4, enter the formula: =SI(Z4=Z3,0,1) to get a 0 if values are identical and a 1 if not and copy it down to line 403.

4 - The sum of cells AA4 to AA403 will give you the number of unique sets of numbers (those rows with a 1 in column AA).

Not a very elegant way of doing it but it works if the numbers from column O to Y are in increasing order like in your example, otherwise, it is back to the drawing board.
Reply With Quote
  #5  
Old 01-16-2009, 03:17 PM
GillesD's Avatar
GillesD GillesD is offline
Registered User
 
Join Date: Oct 1999
Location: Montréal
Posts: 715
More elegant solution

My previous post provided a solution that identified lines with duplicate data; this could allow you to remove them or do whatever you wanted. But if you only want to know the number of unique sets of numbers, then a simpler soultion could be:

1 - As before, in cell Z4, enter the formula: =O4&P4&Q4&R4&S4&T4&U4&W4&X4&Y4 to generate a string with the eleven numbers and copy it down to line 403. Give the cells Z4:Z403 a name like Data.

2 - In the cell where you want the number of unique sets of numbers to appear, enter the formula: =SUM(1/COUNTIF(Data;Data)) but do not press Enter; instead press Control+Shift+Enter to enter an array formula which will give you the number of unique sets of numbers.
Reply With Quote
  #6  
Old 09-29-2009, 06:49 AM
patron patron is offline
Registered User
 
Join Date: Nov 2007
Location: Greece
Posts: 30
Another Question...

I'm trying to make a macro to find how many times a given set of 6 numbers repeated at the previous draws.
I was thinking to use countif but it does not work.
i just want to find out how many times does the 6 numbers appear, i does not matter to know the combination
0 hit 1700
1 hit 300
2 hit 100
3 hit 15
4 hit 1
5 hit 0
6 hit 0
something like the above.
any ideas????
thank you in advance..
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel VBA Program for Wheel Analysis PAB Lotto Software 1 12-17-2007 10:36 PM
Excel Formula- Combinations SHT Questions & Answers 9 11-09-2003 12:27 PM
Excel Formula- combinations SHT International & State Lotteries 1 08-10-2003 12:34 AM
Visual Basic Macro in Excel lottodude Questions & Answers 14 03-25-2003 09:58 PM


All times are GMT -5. The time now is 02:04 PM.

Silver Lotto System
Silver Lotto System

 

Lottery Circle Manual

 


Powered by vBulletin
Copyright © 2000 - 2012 Jelsoft Enterprises Ltd.
Copyright © 1999 - 2012 LottoForums.com