+ Reply to Thread
Results 1 to 4 of 4

Formula finds the max number of consecutive times and the Total of consecutive values

  1. #1
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Formula finds the max number of consecutive times and the Total of consecutive values

    The formula finds the maximum number of consecutive times and the sum of consecutive values between 1 and 0

    The maximum number of consecutive times in the marketing department is 3, and Total amount 38974
    The sales department's maximum consecutive times of 6, and Total amount 193058


    Thanks for any help !
    Attached Files Attached Files
    Last edited by rayhen; 06-01-2021 at 03:06 AM.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Formula finds the max number of consecutive times and the Total of consecutive values

    With two helper columns D & E

    try this

    In D2
    Please Login or Register  to view this content.
    and drag down
    In E2
    Please Login or Register  to view this content.
    and drag down

    then in G2
    Please Login or Register  to view this content.
    (as an array formula so hit control + enter + shift
    then drag down to G3


    then in H2
    Please Login or Register  to view this content.
    (just as a normal formula this time) and drag down to H3
    Attached Files Attached Files
    Happy with my advice? Click on the * reputation button below

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

    Re: Formula finds the max number of consecutive times and the Total of consecutive values

    ARRAY formulas are used.
    In G2 then copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In H2 then copy 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.

  4. #4
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: Formula finds the max number of consecutive times and the Total of consecutive values

    Excellent solution. Thank you both, thank you very much for the solution.

+ 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. Formula to count the number of events of consecutive values
    By malaka76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2020, 08:11 AM
  2. [SOLVED] Asigning consecutive textbox values to multiple consecutive cells...
    By Hovoruha Octavian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2019, 06:31 PM
  3. Replies: 1
    Last Post: 10-09-2014, 12:21 PM
  4. Replies: 17
    Last Post: 06-27-2014, 04:25 PM
  5. Replies: 2
    Last Post: 02-09-2014, 12:40 AM
  6. Count the number of consecutive times a value occurs
    By mbhc77 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2014, 07:58 AM
  7. Replies: 3
    Last Post: 09-29-2009, 06:42 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