#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Lottery exercise

Put your 18 numbers (3x6) into cells A1 thru A18. Put your database into say
C1 thru C1000. In B1 put =COUNTIF(C1:C1000,"="&A1) and copy down thru B18.


For each entry in column A you will now know if the number appears in the
database and how many times it appears.
--
Gary's Student


"Mike G" wrote:

I buy 3 tickets, 6 numbers each and want to compare them with a data base of
past winners. Conditional formating only allows 4 instances, (was wanting
to change format of data base in which numbers match i.e. turn red or??)
Should be easy.....but I am stumped. TIA



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike G
 
Posts: n/a
Default Lottery exercise

Tried that and here is what I got:
A B C
1 1 9
2 0 5
3 0 5
4 0 7
5 0 9
6 0 1
7 4 13
8 0 15
9 4 17
10 0 7
11 0 18
12 0 7
13 0 9
14 0 7
15 0 9
16 0 7
17 0 9
18 0 9

Clearly not doing what I want!

"Gary''s Student" wrote in message
...
Put your 18 numbers (3x6) into cells A1 thru A18. Put your database into
say
C1 thru C1000. In B1 put =COUNTIF(C1:C1000,"="&A1) and copy down thru
B18.


For each entry in column A you will now know if the number appears in the
database and how many times it appears.
--
Gary's Student


"Mike G" wrote:

I buy 3 tickets, 6 numbers each and want to compare them with a data base
of
past winners. Conditional formating only allows 4 instances, (was
wanting
to change format of data base in which numbers match i.e. turn red or??)
Should be easy.....but I am stumped. TIA





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
abdualmohsn almedrahe abdualmohsn ahmad Excel Discussion (Misc queries) 1 November 19th 05 06:32 PM
How do I generate random lottery numbers in Excel? Mark1809 Excel Worksheet Functions 7 July 31st 05 07:23 PM
Checking Winning Numbers in the Lottery. Ann Excel Discussion (Misc queries) 4 May 18th 05 10:55 AM
How do I make a lottery checker Tigerman New Users to Excel 2 March 5th 05 11:19 PM
complex validation for lottery numbers [email protected] Excel Discussion (Misc queries) 2 February 9th 05 03:15 PM


All times are GMT +1. The time now is 08:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"