+ Reply to Thread
Results 1 to 6 of 6

Count consecutive increases

  1. #1
    Registered User
    Join Date
    12-12-2006
    Posts
    8

    Count consecutive increases

    Hi,

    Can anyone help me write a formula that counts consecutive increases in a row of numbers?

    In a row of numbers, I would like to start at the rightmost one, move leftwards, check if next number is smaller than the previous. If it is, increase count by one, if not abort and write count in an adjacent cell.

    I am not looking for the VBA solution...

    Please see enclosed file for clarification(?).

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    I seem to recall a Mr. Excel podcast that covered a similar scenario not so long ago - it was to do with counting winning and losing streaks. Take a look here: http://www.mrexcel.com/podcast/learnexcelpodcast.html and search for 'win streak'. Might be of use.

    HTH,

    SamuelT

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    May be this will help?
    Attached Files Attached Files
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try this formula in G2 copied down

    =COLUMNS(B5:F5)-LOOKUP(2^15,CHOOSE({1,2},0,MATCH(2,1/(B5:F5<=A5:E5))))

    This is an array formula that needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces appear around the formula in the formula bar

  5. #5
    Registered User
    Join Date
    12-12-2006
    Posts
    8
    Sweet daddylonglegs, thanks lots!!

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Count consecutive increases

    Hi all,

    I have the same problem but just need to know how to modify the formula to go from left to right.

    Thanks in advance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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