+ Reply to Thread
Results 1 to 7 of 7

(HELP) Counting Consecutive Values < 1 From Right

  1. #1
    Registered User
    Join Date
    04-11-2014
    Location
    Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    3

    (HELP) Counting Consecutive Values < 1 From Right

    Greetings !!
    I need some help to count how many values that lower than 1 consecutively from right
    Here the simple example

    Please Login or Register  to view this content.
    Thank you for helping
    Last edited by mus1ca; 07-21-2014 at 09:50 PM.

  2. #2
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: (HELP) Counting Consecutive Values < 1 From Right

    Assuming first set of number is in A1 through A6

    Copy the formula into the first cell of your answer column and drag down.

    Please Login or Register  to view this content.
    Cheers
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

  3. #3
    Registered User
    Join Date
    04-11-2014
    Location
    Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: (HELP) Counting Consecutive Values < 1 From Right

    Quote Originally Posted by cplettner View Post
    Assuming first set of number is in A1 through A6

    Copy the formula into the first cell of your answer column and drag down.

    Please Login or Register  to view this content.
    Cheers

    thanks for the reply

    but it count all the values that lower than 1
    whereas i need to count only the consecutive values from the right
    i already mentioned it on the example

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: (HELP) Counting Consecutive Values < 1 From Right

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    2
    10
    1
    0.1
    0
    0
    3
    3
    10
    1
    0.1
    0.9
    0
    3
    4
    0.2
    0.1
    1
    0
    0
    2
    5
    10
    1
    0.1
    0
    1
    0
    6


    This array formula** entered in G2:

    =COLUMNS(A2:E2)-MATCH(2,1/(A2:E2>=1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: (HELP) Counting Consecutive Values < 1 From Right

    My Mistake!

    See DonkeyOte's solution in post #2

    http://www.excelforum.com/excel-gene...-than-0-a.html

  6. #6
    Registered User
    Join Date
    04-11-2014
    Location
    Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: (HELP) Counting Consecutive Values < 1 From Right

    Quote Originally Posted by Tony Valko View Post
    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    2
    10
    1
    0.1
    0
    0
    3
    3
    10
    1
    0.1
    0.9
    0
    3
    4
    0.2
    0.1
    1
    0
    0
    2
    5
    10
    1
    0.1
    0
    1
    0
    6


    This array formula** entered in G2:

    =COLUMNS(A2:E2)-MATCH(2,1/(A2:E2>=1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down as needed.
    thanks tony
    it works perfectly !!

    Quote Originally Posted by cplettner View Post
    My Mistake!

    See DonkeyOte's solution in post #2

    http://www.excelforum.com/excel-gene...-than-0-a.html
    thanks for your help

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: (HELP) Counting Consecutive Values < 1 From Right

    You're welcome. Thanks for the feedback!

+ 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] Counting consecutive values less than X
    By stellards20 in forum Excel General
    Replies: 3
    Last Post: 06-18-2014, 12:08 AM
  2. Counting Consecutive values and saving them
    By tdrouillard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2013, 10:23 PM
  3. [SOLVED] Counting Consecutive Values
    By khauskins in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2012, 11:37 AM
  4. Counting consecutive values
    By Elijah in forum Excel General
    Replies: 7
    Last Post: 04-23-2010, 05:13 PM
  5. Counting consecutive non-zero values
    By RichH6109 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2007, 07:21 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