+ Reply to Thread
Results 1 to 8 of 8

min max and sum forluma assistance

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    SA
    MS-Off Ver
    2010
    Posts
    11

    min max and sum forluma assistance

    need a hand with formula resulting with;
    - max win streak & corresponding accumulated total
    - max loss streak & corresponding accumulated total
    as far a i have tested the positive streak calc's work (see cells in blue of attachment), but the negative streak calc's does not.. i am sure i am missing something

    attached a sample worksheet
    column details;
    A - date in number format
    B - user input data
    D - accumulated total of B
    F - calc win, loss or draw from B
    G - helper to carry win or loss if draw is found
    H - streak calc
    I - helper for indexing
    J - sum of value (D) per streak
    ((I & J - thanks to help from forum))
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: min max and sum forluma assistance

    If you change your streak formula to negative numbers for losing streaks, it greatly simplifies the formulas to find the max streaks and sums of streaks.

    My suggestion for doing that is, for cell G5 (after getting rid of the other helper columns):

    =IF(F5*G4<0,F5,G4+F5)

    Copied down - and the other formulas are in an example workbook, attached.
    Attached Files Attached Files
    Last edited by Bernie Deitrick; 01-21-2016 at 01:22 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-24-2015
    Location
    SA
    MS-Off Ver
    2010
    Posts
    11

    Re: min max and sum forluma assistance

    thank you.. will have a look & revert

  4. #4
    Registered User
    Join Date
    08-24-2015
    Location
    SA
    MS-Off Ver
    2010
    Posts
    11

    Re: min max and sum forluma assistance

    change to column G works perfect.. thank you

    streak sum may be due to my typing..
    this should be sum of value for the max streak & min streak respectively
    with my knowledge replacing last 2 helper rows & using index/match i can get
    win streak value; but loss streak results in error due to multiple occurances
    i added expected result in red
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: min max and sum forluma assistance

    Do you actually want all the point from the streak - the cells in yellow in this file? OR do you want to ignore the first value of each of the streaks? And what do you want if you have two streaks of the same length?

    Sample Book 3 B.xlsx

  6. #6
    Registered User
    Join Date
    08-24-2015
    Location
    SA
    MS-Off Ver
    2010
    Posts
    11

    Re: min max and sum forluma assistance

    first value to be ignored as it is where the streak starts (i.e. zero in normal counting terms)
    when more than one streak has same value/length the highest/longest sum should be returned
    eg. there are two -4 streaks resulting in -87 and -108. the -108 is thus the max streak on loss side

    thank you for all the help thus far

  7. #7
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: min max and sum forluma assistance

    That needs a helper column of formulas:

    Sample Book 3 C.xlsx

    I should note that if the max or min sum is not associated with the longest streak, it will still be reported as the Max: if you have one streak with 6 and a sum of 150 and another streak that is 7, but with 140, then the 150 will be reported. Otherwise, you need to use array formulas - Entered using Ctrl-Shift-Enter

    =MAX(IF(G:G=J5,H:H))

    and

    =MIN(IF(G:G=J8,H:H))

    Not sure which you actually wanted.
    Last edited by Bernie Deitrick; 01-25-2016 at 03:03 PM.

  8. #8
    Registered User
    Join Date
    08-24-2015
    Location
    SA
    MS-Off Ver
    2010
    Posts
    11

    Re: min max and sum forluma assistance

    thank you works perfectly

+ 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] IF, MIN, MAX assistance
    By neatfeatguy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2015, 04:55 PM
  2. [SOLVED] Apply forluma on formulated rows
    By Sai Prashanth in forum Excel General
    Replies: 10
    Last Post: 09-26-2014, 03:43 PM
  3. IF/AND Assistance
    By jodyd in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-23-2011, 12:03 PM
  4. Extending Forluma to last row
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2011, 12:54 PM
  5. Need some assistance
    By mjman15 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-10-2005, 06:44 PM
  6. [SOLVED] Assistance please?
    By http:// in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. Assistance please?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 09-06-2005, 04:05 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