+ Reply to Thread
Results 1 to 9 of 9

Issue getting Excel to give me a win or lose instead of true or false for probability

  1. #1
    Registered User
    Join Date
    09-21-2014
    Location
    lake city,fl
    MS-Off Ver
    ms office 2011 for mac
    Posts
    5

    Issue getting Excel to give me a win or lose instead of true or false for probability

    Well I have this problem for school that I am having issues with it is

    You are going to play a game where you bet a dollar and get to flip a coin ten times. If you get four heads in a row, you win. If you make the tenth flip without getting four heads in a row, you lose. Run this game ten thousand times. Approximately what is the probability that you will win?

    It has to be done on an excel spreadsheet with standard formulas and not macros well i got it almost figured out but the formula my girlfriend figured up for me keeps coming back true/false and excel will not allow me to do a countif function on true/false answers so I need to get the formula to come up win or lose instead any help will be greatly appreciated. The formula she made for me is below.

    =OR(ISNUMBER(SEARCH(REPT({"1"},4),A3&B3&C3&D3&E3&F3&G3&H3&I3&J3)))

    heads=1 tails=0 on my spreadsheet

  2. #2
    Registered User
    Join Date
    09-21-2014
    Location
    lake city,fl
    MS-Off Ver
    ms office 2011 for mac
    Posts
    5

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    if anyone knows of a way maybe to do it in a cell next to the true/false outcome to make it say win/lose also would work i just need a way to get this figured out ive been working on the same 3 problems for the last 5 days and seem to be going no where with them

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    We won't do your homework but happy to guide you. If your formula above is giving you true and false why not just wrap an if statement around it?

    Please Login or Register  to view this content.
    I assume A3 to J3 are all random number generators rounded to 1 or 0 and that you've copied that down 10,000 lines to simulate the games

  4. #4
    Registered User
    Join Date
    09-21-2014
    Location
    lake city,fl
    MS-Off Ver
    ms office 2011 for mac
    Posts
    5

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    the A3 and J3 were cell locations im going across and not down with my spreadsheet since its easier to put each die roll next to each other. No i am not expecting anyone to do my homework for me its just not working the way i want it to lol. When i do a countif the function will not count true or false values which was the best that between me and my girlfriend we could make it do. Out of an entire year of school this is the only time i have asked for outside help including that of my girlfriend and only reason i asked her is because she is an accountant and uses excel everyday vs me i havent used it since my jr year of high school back in 2005.
    Last edited by redrod87; 09-21-2014 at 04:13 AM.

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    So did the if statement fix your problem?

  6. #6
    Registered User
    Join Date
    09-21-2014
    Location
    lake city,fl
    MS-Off Ver
    ms office 2011 for mac
    Posts
    5

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    yes it did and thank you so much i have literally been working on these 3 problems for the past 5 days and this was the final one again thank you now i can finally get some sleep

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    Great. I think we're on the same page with the set up. 10 columns representing each roll of the die but surely you'll copy that down 10,000 rows as each row of 10 die rolls is a single game isn't it.

  8. #8
    Registered User
    Join Date
    09-21-2014
    Location
    lake city,fl
    MS-Off Ver
    ms office 2011 for mac
    Posts
    5

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    yes it is setup for 10k times but i didnt want to copy it down all the way till i was sure everything would work right so i wouldnt have to start from scratch incase it was wrong i had it setup with only 5 rows until i was sure all the formatting was correct first. I figured starting small would be better than having to scroll all the way down each time i needed to edit it or delete the whole thing each time.

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Issue getting Excel to give me a win or lose instead of true or false for probability

    Great. Glad it's all working. If you haven't already done so you should mark as [solved].

    And a little tip. If you do copy down the 10,000 rows and decide to change the formula you don't have to drag the new formula over the top. Double click on the square in the bottom right of the cell and it will auto copy over the cells below

+ 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. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  2. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  3. Formula that will give me True or False results
    By Reenee in forum Excel General
    Replies: 2
    Last Post: 02-02-2009, 10:36 AM
  4. Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM
  5. vlookup, true false issue
    By pjjclark in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-06-2006, 04:10 PM

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