+ Reply to Thread
Results 1 to 6 of 6

Formula to calculate cumulative losses before winner

  1. #1
    Registered User
    Join Date
    07-08-2019
    Location
    Espana
    MS-Off Ver
    16.26 for MAC
    Posts
    3

    Formula to calculate cumulative losses before winner

    Hi all, I am completely newb in excel and was looking for help on something.

    I am using this formula =IF(H2<0;Z1+1;0) in cell Z1 for calculating cumulative losses before having a winner. H2 is the range from which we calculate.

    An example of the result of this formula would be:
    0
    1
    2
    0
    0
    1
    2
    3
    4
    0

    I need a formula that calculates the amount of losses in a row before getting a winner, which is marked by 0, so for example:

    0
    1
    2 2
    0
    0
    1
    2
    3
    4 4
    0

    Hope it's understandable. Deeply appreciate the help, thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Formula to calculate cumulative losses before winner

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-08-2019
    Location
    Espana
    MS-Off Ver
    16.26 for MAC
    Posts
    3

    Re: Formula to calculate cumulative losses before winner

    Hi, appreciate the help.

    I've attached a workbook containing a before and after sheet.

    "A" column represents results. Formula in B3 is calculating losses (negative results) in a row before having a winner (positive number)

    I was looking for a formula to use data from B column, that showed only the cumulative losses number before having a winner.
    So instead of "1;2;3;4" only shows "4"

    Example is marked in "After" sheet, column C

    Thanks once again!
    Attached Files Attached Files
    Last edited by ch33tos; 07-09-2019 at 04:54 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Formula to calculate cumulative losses before winner

    Column B is not needed.

    =IF(AND(A3<0,A4>0),COUNTIF($A$3:A3,"<0")-SUM($D$2:D2),"")

    You may need ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    07-08-2019
    Location
    Espana
    MS-Off Ver
    16.26 for MAC
    Posts
    3

    Re: Formula to calculate cumulative losses before winner

    Hi Glenn, appreciate your reply, the formula worked and is exactly what I needed. Very grateful. Best regards

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Formula to calculate cumulative losses before winner

    You're welcome!

+ 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. Need SUMPRODUCT formula to calculate Cumulative Totals
    By H260780 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2019, 05:51 AM
  2. Replies: 5
    Last Post: 09-11-2018, 10:29 AM
  3. need help with excel formula to calculate based on cumulative
    By zr3cool in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2018, 03:36 PM
  4. Formula to calculate half wins and half losses
    By chilli76 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-27-2014, 07:33 AM
  5. [SOLVED] Formula to calculate cumulative profit
    By bigband1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-02-2013, 06:49 AM
  6. Formula to calculate cumulative balance
    By cmefino in forum Excel General
    Replies: 1
    Last Post: 02-01-2011, 09:48 AM
  7. [SOLVED] Formula to calculate cumulative interest
    By mam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2006, 06:10 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