Excel Lotto Checker

spookym

New Member
Joined
Jun 6, 2003
Messages
1
I'm trying to do a lotto checker in excel 2000 using lines A1 to F6 through to A11 to F11 (11 rows of lotto numbers),I'm having trouble trying to work out a foumula setting to check the numbers after i've entered the weeks no.s so excel will check any matching no.s and highlight them. any advice welcome
Thankyou. :cool:
 

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
Book1.xls
ABCDEF
1123456
2121110987
3131415161718
4192021222324
5123456
6654321
7789101112
8121110987
9121110987
10123456
11654321
12
13
14NumbersCalledThisWeek
151511397
USA


Select cell A1 then select FORMAT|CONDITIONAL FORMATTING from the menu bar select "Formula Is" and use the following

=COUNTIF($A$15:$F$15,A1)>0

Where $A$15:$F$15 is the range where you place the actual numbers called for the week change that to whatever range you wish to use. Now select the PATTERN color you want to use for Hilighting if the number is one that was called. once you have that set then you can copy the format from a1 across to F1 usind EDIT | Paste Special | Formats then copy the first row and do the same thing down as many rows as you want to keep track of tickets.

Hope that makes since for you.
 
Upvote 0
If you want the formula to indicate the number of winning numbers by row,
you can use one of the following:

=SUMPRODUCT(COUNTIF($A$15:$G$15,A2:G2))

or Array enter with Ctrl-Shift-Enter one of

=SUM(IF(TRANSPOSE($A$15:$F$15)=A2:F2,1,0))

=SUM(IF(COUNTIF($A$15:$G$15,A2:G2)=1,1,0))

Edit ranges as necessary


Additional comments:
- if you want to highlight results with winners say matches of 3 or more, apply conditional formatting.
- you can extend each of the formulas to consider 'bonus' numbers; you can have one result with bonus number and one without
- countif will give total of winning tickets
 
Upvote 0
Found your query when I was searching site for something else. Did you have any luck with your lotto checker. If it is of any interest or help to you I do one. Look at my website www.jjnixon.btinternet.co.uk. If it helps you can have it.
John
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,734
Members
449,094
Latest member
dsharae57

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