+ Reply to Thread
Results 1 to 18 of 18

Google Sheets: Calculate longest winning streak

  1. #1
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Google Sheets: Calculate longest winning streak

    Hi everyone,

    I'm trying to calculate the winning streaks of my trades,
    any idea on how to do it?

    667788.JPG

    thanks,
    Yoni
    Last edited by AliGW; 12-28-2017 at 01:20 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate winning streak

    Welcome to the forum!

    Did you search the forums before posting? I did a search for you: https://www.excelforum.com/search.php?searchid=7648859
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Calculate winning streak

    Hi AliGW,

    Thanks for your quick reply, i didn't find what i was looking for and the link that you added doesn't go anywhere.
    what should i do?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate winning streak

    Type "winning streak" (without the speech marks) into the search box top right.

  5. #5
    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
    43,893

    Re: Calculate winning streak

    Try something like this array formula:

    =MAX(FREQUENCY(IF($A$2:$A$33="Win",ROW($A$2:$A$33)), IF($A$2:$A$33<>"Win",ROW($A$2:$A$33))))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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

  6. #6
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Calculate winning streak

    Hi Glenn,

    Thank you very much!

    It works on excel perfectly but when i try it on google sheets it didn't work, do you know how to do it in google sheets also?
    And, can i add to the formula to calculate it per currency?

  7. #7
    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
    43,893

    Re: Calculate winning streak

    Please post a sample sheet. I don't want to retype what you have in front of you. I don't use Google sheets.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).



    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  8. #8
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Calculate winning streak

    ok
    please see attached file
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate winning streak

    If you are using another platform to Excel, you need to say so from the start. I've moved your thread to the correct section.

  10. #10
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Calculate winning streak

    I"m using both excel & google sheets.
    I need this formula to a number of calculations.

  11. #11
    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
    43,893

    Re: Calculate winning streak

    here you are.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Calculate winning streak

    Thank you very very much!!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate winning streak

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  14. #14
    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
    43,893

    Re: Calculate winning streak

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate winning streak

    Now marked as unsolved as the OP has a follow-on question.

  16. #16
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Google Sheets: Calculate longest winning streak

    I'm trying to create a winning streak formula like in my excel but when i press CTRL+SHIFT+ENTER it doesn't work like in excel, it only adds ARRAYFORMULA before my formula and gives me ERROR..

    Any ideas what to do?

    I really don't have to use ARRAYFORMULA, just want to find the formula that calculates the longest winning streak.

    Streaks.JPG
    Last edited by AliGW; 12-28-2017 at 01:31 PM. Reason: Detail added from dulicate thread.

  17. #17
    Registered User
    Join Date
    12-28-2017
    Location
    Israel
    MS-Off Ver
    2010
    Posts
    9

    Re: Google Sheets: Calculate longest winning streak

    does anyone know how to do it in google sheets?
    Last edited by AliGW; 12-28-2017 at 01:42 PM. Reason: Unnecessary duplicate image removed.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Google Sheets: Calculate longest winning streak

    Please be patient.

+ 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. [SOLVED] Calculate winning or losing streak while ignoring draw
    By stensten in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-20-2017, 02:48 AM
  2. Winning a Loosing Streak
    By wladoD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2017, 11:00 AM
  3. [SOLVED] Winning streak.....
    By jackf-nc in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-07-2016, 11:37 AM
  4. [SOLVED] winning streak....
    By jackf-nc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2016, 11:37 AM
  5. Calulating Winning Streak by Month
    By Lewis Koh in forum Excel General
    Replies: 2
    Last Post: 08-22-2010, 02:25 AM
  6. Replies: 4
    Last Post: 08-21-2010, 09:09 PM
  7. Winning Streak by Month...
    By erickguz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2008, 07:37 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