# Help with my Lotto code please

H

#### Harry

Would some kind person please make this formula work for me, itâ€™s for a
lottery numbers checker Iâ€™m making, all works great but for this last bit.
Iâ€™ve tried many different ways without luck. Iâ€™ve left it this way as it best
shows what I want it to do. Iâ€™m sure it is probably an easy formula for those
who do these things but Iâ€™m just playing with it and learning. Iâ€™m using
Excel 2007.
We do 20 tickets 2 times a week always with the same numbers so the checker
just needs the winning numbers entered to give the results.
Thank you in advance for any help.
Harry.
Cell S9 is the number of winning numbers between 1-6 and cell W9 is the
bonus ball 0 or 1.
Â£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

Harry,

Try this

Â£500",IF(S9=6,"Jackpot","No Good")))))

Mike

Thanks for getting back to me Mike, I tried your formula but it does the same
as mine did. It doesnâ€™t show Jackpot with 6 Balls. Any ideas?
Thanks
Harry.

1 Ball = No Good S9
2 Balls = No Good S9
3 Balls = Â£10 S9
4 Balls = About Â£50 S9
5 Balls = About Â£500 S9
5 Balls and Bonus Ball = Big Money S9 + W9
6 Balls = Jackpot S9
Itâ€™s the bonus ball that causes the problem as it involves two 5 Balls and a
total of 6 twice.

Thanks p45cal,

Hope below explains things a bit better. Appreciate your help. I donâ€™t do
much of this but Iâ€™m finding it fun.

Thanks,
Harry.
Code:
--------------------
Winning nos. | Bonus Ball | RESULT
1 0 no good
1 1 no good
2 0 no good
2 1 no good
3 0 Â£10
3 1 Â£10
5 1 Big money
6 0 jackpot

Hi again Mike,
Tried your code again, it almost works, I found it has to have 6 balls and
the Bonus ball to return â€œJackpotâ€. The lottery here in the UK only has 6
numbers so 6 balls and the Bonus ball never occurs. Only five balls brings
the bonus ball into play.
Harry.

Harry,

I see my error, try this

Mike

Hi Mike,
That works great. A bit more complicated than I thought and beyond my
capabilities.
I donâ€™t suppose â€œJackpotâ€ will ever pop up, who knows?
Thanks very much for your help.
Regards,
Harry.

Thanks for the help p45cal,

I don't know how it works but it does.

Regards,

Harry.

Hello Barry,

Well they both work, I now have four different ways to do the same thing, no
wonder I can't get my head around it all.

Thanks very much for the help.

Regards,

Harry.

Hi,

Suppose you set up the following lookup table:
0 No Luck
3 Â£10.00
5.5 Big Money
6 Jackpot

Then you could use a simple formula like:

=VLOOKUP(W9/2+S9,A1:B6,2)

where the table is in the range A1:B6.

Thank's Shane, I'll give it a try.

Harry.

Shane Devenshire said:
Hi,

Suppose you set up the following lookup table:
0 No Luck
3 Â£10.00
5.5 Big Money
6 Jackpot

Then you could use a simple formula like:

=VLOOKUP(W9/2+S9,A1:B6,2)

where the table is in the range A1:B6.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire