Lotto Formula

Shoota

New Member
Joined
Jan 29, 2019
Messages
3
My name is Maurice, Can you help me please. I am in New Zealand and I have these numbers on the below that I take each week in our country lottery. I have a conditional formula that highlights the winning numbers by colour from results in A1 to F1 for the first 6 numbers then bonus number in G1 and then powerball number in H1. On the right hand side is the results list for the prizes. Could you possibly have a formula that would show starting in I1 through to I7 that there is a prize to be collected from the shop from column A2-A7 through J2-J7. I have the first 6 numbers as Yellow fill with Dark yellow text, Bonus is Green with Dark Green text, Power Ball is Red with Dark Red text. I would like it if it could show Lotto Division 1,7 or Powerball Division 1,7 if the numbers do come up. I got the bottom formulas working ok for Lotto but the powerball come up with prize power 5 as soon as I put the number 2 in A1. I would like no result from power until row 11 is counted. I don't understand coding, but some formula. Hoping someone may be able to help. Thank You, Maurice.:)




A1B1C1D1E1F1G1H1I1J1row 1
Col LCol MCol NCol O
27381278758row 26Lotto 1
162112176291211913row 35YesLotto 2
20252621123216171318row 45Lotto 3
31333025183422231723row 54YesLotto 4
35363331283728292128row 64Lotto 5
38403835293934352733row 73YesLotto 6
7777779787row 83Lotto 7
0000000000row 9Power Ball
0000000000row 106YesPower 1
0000000000row 115YesYesPower 2
FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSErow 125YesPower 3
FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSErow 134YesYesPower 4
row 144YesPower 5
row 153YesYesPower 6
row 163YesPower 7

<colgroup><col><col span="10"><col><col><col><col></colgroup><tbody>
</tbody>



Lotto row 12
=IF(A9=6,$O$2,IF(A9+A10=6,$O$3,IF(A9=5,$O$4,IF(A9+E10=5,$O$5,IF(A9=4,$O$6,IF(A9+A10=4,$O$7,IF(A9=3,$O$8)))))))

Powerball row 13 =IF($A9+A11=7,$O$10,IF(A9+A10+A11=7,$O$11,IF(A9+A11=6,$O$12,IF(A9+A10+A11=6,$O$13,IF(A9+A11=5,$O$14,IF(A9+A10+A11=5,$O$15,IF(A9+A11=4,$O$16 )))))))
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Maurice,
You could use
Code:
[COLOR=#444444][FONT=Calibri]=IF(NOT([/FONT][/COLOR][COLOR=#5F8CED][FONT=Calibri]A12[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]),"",IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]$A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=7,[/FONT][/COLOR][COLOR=#2D9639][FONT=Calibri]$O$10[/FONT][/COLOR][COLOR=#444444][FONT=Calibri],IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#BF4C91][FONT=Calibri]A10[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=7,[/FONT][/COLOR][COLOR=#E38222][FONT=Calibri]$O$11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri],IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=6,[/FONT][/COLOR][COLOR=#377F9E][FONT=Calibri]$O$12[/FONT][/COLOR][COLOR=#444444][FONT=Calibri],IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#BF4C91][FONT=Calibri]A10[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=6,[/FONT][/COLOR][COLOR=#5F8CED][FONT=Calibri]$O$13[/FONT][/COLOR][COLOR=#444444][FONT=Calibri],IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=5,[/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]$O$14[/FONT][/COLOR][COLOR=#444444][FONT=Calibri],IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#BF4C91][FONT=Calibri]A10[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=5,[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]$O$15[/FONT][/COLOR][COLOR=#444444][FONT=Calibri],IF([/FONT][/COLOR][COLOR=#EB5E60][FONT=Calibri]A9[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]+[/FONT][/COLOR][COLOR=#8D61C2][FONT=Calibri]A11[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]=4,[/FONT][/COLOR][COLOR=#2D9639][FONT=Calibri]$O$16[/FONT][/COLOR][COLOR=#444444][FONT=Calibri]))))))))[/FONT][/COLOR]
For Powerball row 13
Cheers
Sergio
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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