+ Reply to Thread
Results 1 to 4 of 4

Lottery Simulation

  1. #1
    Registered User
    Join Date
    03-07-2015
    Location
    Virginia
    MS-Off Ver
    2007
    Posts
    2

    Lottery Simulation

    Hi I've created a lottery simulator and I need help with some formulas. By pressing F9 on attached sheet you get a new set of random numbers for 3 months of every day play (that costs $90). I need a formula which adds $90 after each three month iteration to the cost column. Then I need a formula which picks up the winners from the three months (they are 1s as opposed the losers which are 0s). That formula must add $500 to the total of winnings. See my spreadsheet, its attached, includes all the details.

    Thanks!

    George
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Lottery Simulation

    Using your sample sheet this will add 500 to I7 when a 1 appears in any of the month columns (placed in I7)
    =IF(COUNTIF(E5:G33,1),I7+5,I7)
    If no 1's are found it returns the current value of I7

    When does the Cost cell need to change?
    Does it increment like the winnings?

  3. #3
    Registered User
    Join Date
    03-07-2015
    Location
    Virginia
    MS-Off Ver
    2007
    Posts
    2

    Re: Lottery Simulation

    Thank you windy58. Yes the cost cell increments every time regardless of winning or losing. I applied the formula to the cost as well and it works the way I want it too.

    Thanks for the help!

    George
    Last edited by gzhelev; 03-08-2015 at 12:13 PM.

  4. #4
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Lottery Simulation

    Glad I could help

    Windy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lottery spreadsheet
    By dwalters in forum Excel General
    Replies: 4
    Last Post: 07-24-2015, 09:17 AM
  2. Help me win the Lottery...
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2014, 07:56 AM
  3. Help with lottery
    By ilikemax in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-20-2014, 08:22 PM
  4. lottery
    By heramiah in forum Excel General
    Replies: 14
    Last Post: 02-23-2010, 07:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1