Count consecutive numbers in Array

audax48

Board Regular
Joined
May 19, 2012
Messages
54
Office Version
  1. 2019
Platform
  1. Windows
Good day Experts..please help me with this
I have 3 Columns with single digit numbers, I need to know how many times each digit repit consecutively.ex
345
367
410
123
012
306
here we can see 0 repit 1 times (rows 5, 6), 1 = 2(rows 3, 4 and 4, 5), 3 1 times (rows 1 and 2)
please help with the formula, thanks
 
Let start with a new example


Sorry for confusing you, can we make a reset and start from zero....
MultiplicaTusLucas3.xlsm
HIJKL
512600
682111
757921
806030
942240
1007250
1197260
1233670
1374780
1467690
152430
165240
172940
183810
192150
206320
215580
228980
Sheet1
Cell Formulas
RangeFormula
L5:L22L5=SUM(N((INDEX(IFERROR(ROW(INDIRECT("1:"&COUNT($H$5:$H$22)))*((($H$5:$H$22=$K5)+($I$5:$I$22=$K5)+($J$5:$J$22=$K5))>0),0),ROW(INDIRECT("2:"&COUNT($H$5:$H$22) )) ) -INDEX(IFERROR(ROW(INDIRECT("1:"&COUNT($H$5:$H$22)))*((($H$5:$H$22=$K5)+($I$5:$I$22=$K5)+($J$5:$J$22=$K5))>0),0),ROW(INDIRECT("1:"&COUNT($H$5:$H$22)-1)) )) = 1))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited by a moderator:
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I cannot follow your last post, as you are quoting a lot of extraneous information and copying other things into it. Please review my post #10 carefully...the solution to the new data set is in that post.
 
Upvote 0
@audax48 In future please take more care when creating posts. You seem to be trying to copy half the site into your posts. I have cleaned them up for you this time.
 
Upvote 0

Forum statistics

Threads
1,216,090
Messages
6,128,765
Members
449,467
Latest member
sdafasfasdf

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