Lotto Trigger

Steve 1962

Active Member
Joined
Jan 3, 2006
Messages
379
Office Version
  1. 365
Platform
  1. Windows
Hi

I am attempting to have winning lotto combination flag a "winner" notification in cell C17. Currently it operates OK for the lottery however, an extra winning combination has been introduced which renders my formula useless. Previously, a minimum of three "main numbers" (column "A") and a minimum of one "supplementary" (column "B") would trigger a "winner" in cell C17. Now, an additional two prizes have been introduced which trigger a "winner" but I can't get the formula to work. The new two combinations are in rows 13 & 14 (eg: 2 main + 2 supplementary or 1 main + 2 supplementary). Any suggestions as to how I can modify my current formula to accommodate the change.

Thanks

Steve
Excel Workbook
ABC
1Main NumberSupplementary
262
361
460
552
651
750
842
941
1040
1132
1231
1322
1412
15
16
1731Winner
Sheet1
Excel 2007
Cell Formulas
RangeFormula
C17=IF(OR(A17>3,AND(A17>2,B17>0)),"Winner","")
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi

I am attempting to have winning lotto combination flag a "winner" notification in cell C17. Currently it operates OK for the lottery however, an extra winning combination has been introduced which renders my formula useless. Previously, a minimum of three "main numbers" (column "A") and a minimum of one "supplementary" (column "B") would trigger a "winner" in cell C17. Now, an additional two prizes have been introduced which trigger a "winner" but I can't get the formula to work. The new two combinations are in rows 13 & 14 (eg: 2 main + 2 supplementary or 1 main + 2 supplementary). Any suggestions as to how I can modify my current formula to accommodate the change.

Thanks

Steve


Excel Workbook
ABC
1Main NumberSupplementary
262
361
460
552
651
750
842
941
1040
1132
1231
1322
1412
15
16
1731Winner
Sheet1
Excel 2007
Cell Formulas
RangeFormula
C17=IF(OR(A17>3,AND(A17>2,B17>0)),"Winner","")
Maybe this...

=IF(OR(AND(A17>=3,B17>=1),AND(A17>=2,B17>=2),AND(A17>=1,B17>=2)),"Winner","")
 
Upvote 0
Thanks Biff

Seems to be OK except that when 6 main numbers are drawn with 0 supplementaries, the "winner" indicator goes blank.

Steve
 
Upvote 0
Excel Workbook
ABC
1Main NumberSupplementary
262
361
460
552
651
750
842
941
1040
1132
1231
1322
1412
15
16
1731Winner
Sheet1
Excel 2007
Cell Formulas
RangeFormula
C17=IF(OR(A17>3,AND(A17>2,B17>0)),"Winner","")

Thanks Biff

Seems to be OK except that when 6 main numbers are drawn with 0 supplementaries, the "winner" indicator goes blank.

Steve
Are you saying that the numbers in the range A2:B14 represent all the winning combinations?
 
Upvote 0
Just ran all the different winning combinations and I am getting a "0" as the output for all combinations, even 1 main number + 0 supplementary which is not a winning combination. I'll check the formula again and see if I've made a mistake.
 
Upvote 0
Also, A17 & B17 are calculated cells. Not sure if this makes a difference or not.
 
Upvote 0
Thanks Biff for the file that you sent through. Yes, it does appear to be working OK. Unfortunately I'm not feeling too well at the moment and it's rather late here. I'll need to go to bed now but I'll return to this first thing in the morning as I do want to fix this (it's been bugging me for a while now).

Thanks for your help. I will update this post in the morning. Obviously I'm doing something wrong on my end.

Much appreciated and I'll let you know how I go.

Steve
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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