+ Reply to Thread
Results 1 to 14 of 14

Need help what is next Probability after Loss.

  1. #1
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Need help what is next Probability after Loss.

    Using Excel 2010
    Hello,

    In the attached workbook I have done all correct as per given link, but in the cells E5:E19 formula is not working giving results 0.
    Does is possible instead Formula To VBA solution.

    Please help.

    Regards,
    Moti
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help what is next Probability after Loss.

    I have changed formula slightly.
    It is an ARRAY formula needs ARRAY entry(Ctrl+Shift+Enter). In E5 copied Down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Need help what is next Probability after Loss.

    @Kvsrinivasamurthy, Thank you, yes your formula worked as expected correctly.

    Does it is possible to get VBA

    Have a great weekend. Good Luck!

    Kind Regards,
    Moti

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help what is next Probability after Loss.

    Ok. I will try.
    Only change that can be made is instead of manually entering the formula, VBA code will enter formula. We cannot avoid formula because Rand is a volatile function. Any change in worksheet changes the values in Column B.
    Code for VBA
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 04-13-2024 at 10:41 AM.

  5. #5
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Need help what is next Probability after Loss.

    @Kvsrinivasamurthy, ok I understand you just rapped a formula in the code because of Rand Function. Ok I have changed the L & W values fixed now in the column C…and I want count for Consecutive Count L & W in the columns F:G…does in the situation is it possible to have proper VBA solution. Please see the attached sheet.

    I appreciate your help. Have a great weekend. Good Luck!

    Kind Regards,
    Moti
    Attached Files Attached Files
    Last edited by Motilulla; 04-13-2024 at 03:35 PM.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help what is next Probability after Loss.

    Try.
    Code:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help what is next Probability after Loss.

    Another code without using formulas
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Need help what is next Probability after Loss.

    @Kvsrinivasamurthy, you made my day I am happy to have solution post#7 this is what I wanted it is an amazing answer. I want one more favour please can you add one more character “D” for results also. I have not expected result for this task W&D&L; I hope you will find it.

    Please can you take a look when you can?

    Thank you for your time to solve W&L puzzle. Have a great Sunday. Good Luck!

    Kind Regards,
    Moti

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,216

    Re: Need help what is next Probability after Loss.

    Adding to KVS solution [all credit to KVS:]

    Please Login or Register  to view this content.
    Last edited by JohnTopley; 04-14-2024 at 06:27 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  10. #10
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Need help what is next Probability after Loss.

    @JohnTopley, thank you for adding D, into @kvsrinivasamurthy code it is your generosity it would like to thank you also for it. I like your added formula Check Sum.

    @kvsrinivasamurthy, this is entirely solved thank to you for initial start-up solution.

    Wish you both great Sunday and good health always.

    My best regards,
    Moti
    Last edited by Motilulla; 04-14-2024 at 07:23 AM.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help what is next Probability after Loss.

    Welcome. Thanks for the comments.

  12. #12
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Need help what is next Probability after Loss.

    @JohnTopley, please can you take a look post#9 code; where the L result are correct, but of the D & W are not? Here is the file attached

    Kind Regards,
    Moti
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,216

    Re: Need help what is next Probability after Loss.

    Please Login or Register  to view this content.
    My typo!
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    08-06-2006
    Location
    Spain
    MS-Off Ver
    Excel 2010 32Bit
    Posts
    390

    Re: Need help what is next Probability after Loss.

    Quote Originally Posted by JohnTopley View Post
    Please Login or Register  to view this content.
    My typo!
    JohnTopley, thank you for the quick correction all worked perfect

    Have a pleasant day.

    Kind Regards,
    Moti

+ 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. Loss Streak Probability Calculator
    By JoeMSC in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-15-2020, 05:31 PM
  2. Excel Probability Function - How to check and apply probability
    By StormerJack in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2019, 03:06 PM
  3. Help with win loss and tie column & adding profit based on win or loss.
    By schroeder641 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2016, 03:41 PM
  4. [SOLVED] Trading Spreadsheet - Random win/loss outcome against established Win/Loss %
    By cruze2005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2014, 05:08 AM
  5. Probability of Time Loss and Non-time Loss Accidents
    By Oscardeleon in forum Excel General
    Replies: 4
    Last Post: 07-18-2012, 06:12 PM
  6. How to calculate total probability of loss from combination of probabilities
    By prr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2009, 06:48 PM
  7. Probability Question:probability outcomes
    By Myles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2006, 06:45 AM

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