Count Repeated Group For Specefic No

Excel777

Well-known Member
Joined
Jul 3, 2009
Messages
914
Office Version
  1. 2019
Hey Experts

i'm searching for way to count consecutive group of specefic number

as shown here in this example

Excel Workbook
ABCDEF
1NoRepeated Group Of 1Repeated Group Of 2Repeated Group Of 3
210222
311132
40
51
61
71
80
90
101
111
121
130
140
150
161
171
180
190
201
211
220
231
240
250
260
Sheet2


thank in advance for help
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hey Experts

i'm searching for way to count consecutive group of specefic number

as shown here in this example

Excel Workbook
ABCDEF
1NoRepeated Group Of 1Repeated Group Of 2Repeated Group Of 3
210222
311132
40
51
61
71
80
90
101
111
121
130
140
150
161
171
180
190
201
211
220
231
240
250
260
Sheet2


thank in advance for help
As your column headers in D1:F1 just use the numbers 1, 2 and 3.

Enter this array formula** in D2:

=SUM(IF(FREQUENCY(IF($A$2:$A$26=$C2,ROW($A$2:$A$26)),IF($A$2:$A$26<>$C2,ROW($A$2:$A$26)))=D$1,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 across to F2 then down to D3:F3.
 
Upvote 0
imgres
For T. Valko
images



 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top