Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 71
Default Help with my Lotto code please

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Help with my Lotto code please

Harry,

Try this

=IF(S9=3,"£10",IF(S9=4,"About £50",IF(S9+W9=6,"Big Money",IF(S9=5,"About
£500",IF(S9=6,"Jackpot","No Good")))))

Mike

"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 71
Default Help with my Lotto code please

Thanks for getting back to me Mike, I tried your formula but it does the same
as mine did. It doesnt 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
Its the bonus ball that causes the problem as it involves two 5 Balls and a
total of 6 twice.


"Mike H" wrote:

Harry,

Try this

=IF(S9=3,"£10",IF(S9=4,"About £50",IF(S9+W9=6,"Big Money",IF(S9=5,"About
£500",IF(S9=6,"Jackpot","No Good")))))

Mike

"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 71
Default Help with my Lotto code please

Thanks p45cal,

Hope below explains things a bit better. Appreciate your help. I dont do
much of this but Im 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
4 0 About £50
4 1 About £50
5 0 About £500
5 1 Big money
6 0 jackpot


"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 71
Default Help with my Lotto code please

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" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Help with my Lotto code please

Harry,

I see my error, try this

=IF(S9=3,"£10",IF(S9=4,"About £50",IF(AND(W90,S9+W9=6),"Big
Money",IF(S9=5,"About £500",IF(S9=6,"Jackpot","No Good")))))

Mike

"Harry" wrote:

Thanks for getting back to me Mike, I tried your formula but it does the same
as mine did. It doesnt 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
Its the bonus ball that causes the problem as it involves two 5 Balls and a
total of 6 twice.


"Mike H" wrote:

Harry,

Try this

=IF(S9=3,"£10",IF(S9=4,"About £50",IF(S9+W9=6,"Big Money",IF(S9=5,"About
£500",IF(S9=6,"Jackpot","No Good")))))

Mike

"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 71
Default Help with my Lotto code please

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


"Mike H" wrote:

Harry,

I see my error, try this

=IF(S9=3,"£10",IF(S9=4,"About £50",IF(AND(W90,S9+W9=6),"Big
Money",IF(S9=5,"About £500",IF(S9=6,"Jackpot","No Good")))))

Mike

"Harry" wrote:

Thanks for getting back to me Mike, I tried your formula but it does the same
as mine did. It doesnt 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
Its the bonus ball that causes the problem as it involves two 5 Balls and a
total of 6 twice.


"Mike H" wrote:

Harry,

Try this

=IF(S9=3,"£10",IF(S9=4,"About £50",IF(S9+W9=6,"Big Money",IF(S9=5,"About
£500",IF(S9=6,"Jackpot","No Good")))))

Mike

"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Help with my Lotto code please

Hi,

Suppose you set up the following lookup table:
0 No Luck
3 £10.00
4 About £50.00
5 About £500.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


"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 71
Default Help with my Lotto code please

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

Harry.

"Shane Devenshire" wrote:

Hi,

Suppose you set up the following lookup table:
0 No Luck
3 £10.00
4 About £50.00
5 About £500.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


"Harry" wrote:

Would some kind person please make this formula work for me, its for a
lottery numbers checker Im making, all works great but for this last bit.
Ive tried many different ways without luck. Ive left it this way as it best
shows what I want it to do. Im sure it is probably an easy formula for those
who do these things but Im just playing with it and learning. Im 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.
=IF(S9<3,"NO GOOD",IF(S9=3,"£10",IF(S9=4,"ABOUT £50",IF(S9=5,"ABOUT
£500",IF(S9+W9=6,"BIG MONEY",IF(S9=6,"JACKPOT"))))))

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
Lotto question Bojames Excel Discussion (Misc queries) 3 December 26th 08 05:23 PM
lotto numbers marek Excel Worksheet Functions 2 June 23rd 08 01:56 AM
Lotto template Mickey Mouse[_2_] New Users to Excel 3 February 9th 08 07:49 AM
uk lotto dream numbers DarkNight New Users to Excel 8 October 30th 06 05:43 AM
Lotto Number Checker clash Excel Worksheet Functions 7 October 9th 05 04:53 AM


All times are GMT +1. The time now is 09:45 PM.

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

About Us

"It's about Microsoft Excel"