Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Enhanced lottery question

The rules of the game are this

Pick 6 numbers and you must keep this six numbers until someone wins.
assume you pick 1, 2, 3, 4, 7, 8

Assume that the lottery numbers in week 1 are
1, 2, 3, 4, 5, 6

You need numbers 7, 8 to win

Assume that the lottery numbers in week 2 are
1, 7, 8, 10, 15, 25

I would like the system to know that you got all 6 numbers correct and won
the game. (The 1 in week two should be ignored - since it was included as a
winning number in week one.)

Any ideas??




In week 1 - assume that you get 4 of the numbers correct - but you are
missing


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Enhanced lottery question

Brad,

Every week, enter the picked numbers down column A, starting in row 2 (after the first week, enter
the six numbers starting in row 8, etc). Enter the players' names in column B starting in row 2,
and their 6 selected numbers into the same row, in columns C:H. In cell I2 enter the formula

=IF(SUMPRODUCT(ISNUMBER(MATCH(C2:H2,A:A,FALSE))*1) =6,"Winner!","")

and copy down to match your list of players.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
The rules of the game are this

Pick 6 numbers and you must keep this six numbers until someone wins.
assume you pick 1, 2, 3, 4, 7, 8

Assume that the lottery numbers in week 1 are
1, 2, 3, 4, 5, 6

You need numbers 7, 8 to win

Assume that the lottery numbers in week 2 are
1, 7, 8, 10, 15, 25

I would like the system to know that you got all 6 numbers correct and won
the game. (The 1 in week two should be ignored - since it was included as a
winning number in week one.)

Any ideas??




In week 1 - assume that you get 4 of the numbers correct - but you are
missing




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Enhanced lottery question

That works, but please enlighten me

Why does this work using "a:a", but not using example "L7:Q15"?

I'm taking that the false = match_type zero, which makes sense.

I really want to know why it works as well as that it does work......

Thanks again.....

"Bernie Deitrick" wrote:

Brad,

Every week, enter the picked numbers down column A, starting in row 2 (after the first week, enter
the six numbers starting in row 8, etc). Enter the players' names in column B starting in row 2,
and their 6 selected numbers into the same row, in columns C:H. In cell I2 enter the formula

=IF(SUMPRODUCT(ISNUMBER(MATCH(C2:H2,A:A,FALSE))*1) =6,"Winner!","")

and copy down to match your list of players.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
The rules of the game are this

Pick 6 numbers and you must keep this six numbers until someone wins.
assume you pick 1, 2, 3, 4, 7, 8

Assume that the lottery numbers in week 1 are
1, 2, 3, 4, 5, 6

You need numbers 7, 8 to win

Assume that the lottery numbers in week 2 are
1, 7, 8, 10, 15, 25

I would like the system to know that you got all 6 numbers correct and won
the game. (The 1 in week two should be ignored - since it was included as a
winning number in week one.)

Any ideas??




In week 1 - assume that you get 4 of the numbers correct - but you are
missing





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Enhanced lottery question

BRAD,

The array in MATCH needs to be one-dimensional - either a single row or a single column, but not
more than 1 of each... You would need to have six MATCH formulas to work with six columns of
numbers.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
That works, but please enlighten me

Why does this work using "a:a", but not using example "L7:Q15"?

I'm taking that the false = match_type zero, which makes sense.

I really want to know why it works as well as that it does work......

Thanks again.....

"Bernie Deitrick" wrote:

Brad,

Every week, enter the picked numbers down column A, starting in row 2 (after the first week,
enter
the six numbers starting in row 8, etc). Enter the players' names in column B starting in row 2,
and their 6 selected numbers into the same row, in columns C:H. In cell I2 enter the formula

=IF(SUMPRODUCT(ISNUMBER(MATCH(C2:H2,A:A,FALSE))*1) =6,"Winner!","")

and copy down to match your list of players.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
The rules of the game are this

Pick 6 numbers and you must keep this six numbers until someone wins.
assume you pick 1, 2, 3, 4, 7, 8

Assume that the lottery numbers in week 1 are
1, 2, 3, 4, 5, 6

You need numbers 7, 8 to win

Assume that the lottery numbers in week 2 are
1, 7, 8, 10, 15, 25

I would like the system to know that you got all 6 numbers correct and won
the game. (The 1 in week two should be ignored - since it was included as a
winning number in week one.)

Any ideas??




In week 1 - assume that you get 4 of the numbers correct - but you are
missing







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Enhanced lottery question

Thank you,

I'm still amazed what Excel can do, you just need to know how to tell it.

I appreciate your help.....

"Bernie Deitrick" wrote:

BRAD,

The array in MATCH needs to be one-dimensional - either a single row or a single column, but not
more than 1 of each... You would need to have six MATCH formulas to work with six columns of
numbers.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
That works, but please enlighten me

Why does this work using "a:a", but not using example "L7:Q15"?

I'm taking that the false = match_type zero, which makes sense.

I really want to know why it works as well as that it does work......

Thanks again.....

"Bernie Deitrick" wrote:

Brad,

Every week, enter the picked numbers down column A, starting in row 2 (after the first week,
enter
the six numbers starting in row 8, etc). Enter the players' names in column B starting in row 2,
and their 6 selected numbers into the same row, in columns C:H. In cell I2 enter the formula

=IF(SUMPRODUCT(ISNUMBER(MATCH(C2:H2,A:A,FALSE))*1) =6,"Winner!","")

and copy down to match your list of players.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
The rules of the game are this

Pick 6 numbers and you must keep this six numbers until someone wins.
assume you pick 1, 2, 3, 4, 7, 8

Assume that the lottery numbers in week 1 are
1, 2, 3, 4, 5, 6

You need numbers 7, 8 to win

Assume that the lottery numbers in week 2 are
1, 7, 8, 10, 15, 25

I would like the system to know that you got all 6 numbers correct and won
the game. (The 1 in week two should be ignored - since it was included as a
winning number in week one.)

Any ideas??




In week 1 - assume that you get 4 of the numbers correct - but you are
missing










  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Enhanced lottery question

BRAD,

The array in MATCH needs to be one-dimensional - either a single row or a single column, but not
more than 1 of each... You would need to have six MATCH formulas to work with six columns of
numbers.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
That works, but please enlighten me

Why does this work using "a:a", but not using example "L7:Q15"?

I'm taking that the false = match_type zero, which makes sense.

I really want to know why it works as well as that it does work......

Thanks again.....

"Bernie Deitrick" wrote:

Brad,

Every week, enter the picked numbers down column A, starting in row 2 (after the first week,
enter
the six numbers starting in row 8, etc). Enter the players' names in column B starting in row 2,
and their 6 selected numbers into the same row, in columns C:H. In cell I2 enter the formula

=IF(SUMPRODUCT(ISNUMBER(MATCH(C2:H2,A:A,FALSE))*1) =6,"Winner!","")

and copy down to match your list of players.

HTH,
Bernie
MS Excel MVP


"Brad" wrote in message
...
The rules of the game are this

Pick 6 numbers and you must keep this six numbers until someone wins.
assume you pick 1, 2, 3, 4, 7, 8

Assume that the lottery numbers in week 1 are
1, 2, 3, 4, 5, 6

You need numbers 7, 8 to win

Assume that the lottery numbers in week 2 are
1, 7, 8, 10, 15, 25

I would like the system to know that you got all 6 numbers correct and won
the game. (The 1 in week two should be ignored - since it was included as a
winning number in week one.)

Any ideas??




In week 1 - assume that you get 4 of the numbers correct - but you are
missing







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
Excel 2007 line-chart pasted as an enhanced metafile - editing Ben Edwards Charts and Charting in Excel 4 October 7th 07 02:45 PM
Pasting from xl into word as an enhanced metafile LB[_2_] Excel Discussion (Misc queries) 0 April 23rd 07 06:12 PM
The MS Graph Tool should be debugged and greatly enhanced. tomtomward Charts and Charting in Excel 0 February 22nd 06 03:41 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
Statistical graphing - enhanced box&whiskers ACC Charts and Charting in Excel 1 October 24th 05 11:19 PM


All times are GMT +1. The time now is 05:07 AM.

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"