3 Digit Serie or Sequence

audax48

Board Regular
Joined
May 19, 2012
Messages
54
Office Version
  1. 2019
Platform
  1. Windows
PLEASE I need help with a serie.
I have 3 columns A,B and C populated with numbers I want to Count how many times the numbers of the first Row (2, 1, and 5) any of them, are in Consecutive Rows

2 1 5
6 3 2
5 5 8
8 9 1
2 5 9
3 3 1
3 5 7
6 4 1
3 2 4
4 0 8
7 0 0
8 7 2
9 1 0
6 6 6
8 5 8
9 2 6
7 7 9
1 8 4
3 9 4
7 7 1
1 0 3
as Example the numbers 2, 1 and 5 the count will be 8
counting 2 2nd Row, 5 3rd Row,1 4th Row, 2 or 5 (count as 1) 5th Row, 1 6th Row, 5 7th Row, 1 8th Row and 2 9th Row (2,5,2,2 or 5,1,5,1,2), after that do the same following Row (6 3 2) in this case the count for that number is 0.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Is it are you looking for?
Book4
ABCDE
12158
26320
35582
48912
52590
63313
73570
86412
93241
104083
117002
128720
139100
146660
158580
169261
177790
181843
193940
207711
21103
Sheet2
Cell Formulas
RangeFormula
E1:E20E1=IFERROR(MATCH(0,MMULT(ISNUMBER(SEARCH("|"&A1:C1&"|","|"&A2:$A$21&"|"&B2:$B$21&"|"&C2:$C$21&"|"))+0,{1;1;1}),0)-1,COUNT(A2:$A$21))
 
Upvote 0
Solution
THIS IS UNBELIEVE, What Formula is this, solve my problem Thank you VERY MUCH for taking your time for helping me.....Now let see if still you can help me with another question,,
Is there other solution if I want to choose all 1000 thousand combinations 000 - 999 instead of pick Row by row? SORRY for this new question but will solve 100% my problem if you find the formula, really you are the best THANK YOU
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Here is a slightly shorter version using a similar approach, but forming the "found below" array differently:
Book1
ABCDEF
121588
263200
355822
489122
525900
633133
735700
864122
932411
1040833
1170022
1287200
1391000
1466600
1585800
1692611
1777900
1818433
1939400
2077111
21103
Sheet1
Cell Formulas
RangeFormula
E1:E20E1=IFERROR(MATCH(0,MMULT(ISNUMBER(SEARCH("|"&A1:C1&"|","|"&A2:$A$21&"|"&B2:$B$21&"|"&C2:$C$21&"|"))+0,{1;1;1}),0)-1,COUNT(A2:$A$21))
F1:F20F1=IFERROR(MATCH(0,MMULT((A2:C$21=A1)+(A2:C$21=B1)+(A2:C$21=C1),{1;1;1}),0)-1,COUNT(A2:A$21))

I'm not clear on what you mean by...
I want to choose all 1000 thousand combinations 000 - 999 instead of pick Row by row
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

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