+ Reply to Thread
Results 1 to 6 of 6

Find cumulative score of consecutive cells over 100%

  1. #1
    Registered User
    Join Date
    06-13-2022
    Location
    Albany, NY
    MS-Off Ver
    Windows 10
    Posts
    12

    Find cumulative score of consecutive cells over 100%

    Hi there.

    I am looking for a way to automatically add the number of consecutive cells over "100%" such that the total 'score' increases with each additional consecutive 100%. For example, in the attached sheet...

    One 100%+ cell will yield 1 point. Two consecutive 100%+ will yield 3 points. (Because 1+2=3). If there were THREE consecutive 100%, this would yield 6 points (1+2+3).

    However, see row 19 for an example of when this gets tricky. First, there are two consecutive 100% (1+2=3) but then there is another 100% non-consecutively. This would yield a final score of 4 points because (1+2 ... + 1 = 4).


    If anyone has any VBA that can pull this off I will be forever grateful.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find cumulative score of consecutive cells over 100%

    If anyone has any VBA that can pull this off I will be forever grateful.
    non VBA also acceptable?





    Non question information.
    Please also reply to the forummembers who offered you a solution on the earlier questions.
    If you are satisfied with the solution, please mark the question solved.
    Last edited by oeldere; 08-12-2022 at 01:39 PM. Reason: non question information
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-13-2022
    Location
    Albany, NY
    MS-Off Ver
    Windows 10
    Posts
    12

    Re: Find cumulative score of consecutive cells over 100%

    Yes, sure of course!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find cumulative score of consecutive cells over 100%

    I re-arange the data with Power Querry.

    After that

    D2=IF(AND(A2=A1,C2>$J$1,C1>$J$1),2,IF(AND(A3=A2,C2>$J$1,C3>$J$1),0,IF(C2>$J$1,1," ")))

    E2=VLOOKUP([@count],$I$3:$J$8,2,0)

    After that a pivot table.



    See the attached file.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Find cumulative score of consecutive cells over 100%

    Here is a solution with Excel-formulae only:

    Try in Cell J2 and copy down and right:
    Please Login or Register  to view this content.
    Try in Cell P2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by HansDouwe; 08-12-2022 at 03:31 PM.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,963

    Re: Find cumulative score of consecutive cells over 100%

    deleted,....
    Last edited by protonLeah; 08-12-2022 at 05:39 PM.
    Ben Van Johnson

+ 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] Sum Cumulative to get monthly actual score
    By leakhna in forum Excel General
    Replies: 5
    Last Post: 07-15-2022, 07:23 AM
  2. [SOLVED] Find minimum consecutive empty cells
    By Berna11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2021, 02:04 PM
  3. [SOLVED] Maximum cumulative value for the consecutive 3 days of data in 1 year period
    By bennyistanto in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-26-2017, 08:43 AM
  4. [SOLVED] Find consecutive non blank cells in a column
    By desibabuji in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 11-08-2013, 12:50 PM
  5. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  6. Highest Cricket Batting Score, non-consecutive
    By Moosetg in forum Excel General
    Replies: 12
    Last Post: 02-20-2012, 10:29 AM
  7. [SOLVED] Need to find two consecutive identical cells (in a column).
    By How did I get here? in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-03-2006, 03:15 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