• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to count each group of consecutive numbers

bosco_yip

Excel Ninja
Try,

In B2, array (CSE) formula copied down :

=IF(OR((A2-N(A1))>1,ISTEXT(A1)),INDEX(FREQUENCY(IF($A$3:$A$12-$A$2:$A$11=1,ROW($A$2:$A$11)),IF($A$3:$A$12-$A$2:$A$11<>1,ROW($A$2:$A$11)))+1,COUNT(B$1:B1)+1),"")

Confirmed by pressing with "Ctrl"+"Shift"+"Enter" in entry

76892
 
Top