Count completed cycle in row with multi columns

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel 2000

Hi,

Data in cells C6:I80 require result "counts for completed cycle" in column K

Cycle of 3 characters "1X2" for example...
If cycle start with "1" has to finish with "X or 2"
If cycle start with "X" has to finish with "1 or 2"
If cycle start with "2" has to finish with "1 or X"

Cycle required minimum 3 rows to be completed
Step-1 check "1X2" cycle in the columns C through I, in the row 6, 7 & 8 (so in the row 8 didn't Found cycle result = 0 In K8)

Step-2 check "1X2" cycle in the columns C through I, in the row 6, 7, 8 & 9 (so in the row 9 Found 1 cycles in "I6, I7, I8, I9" result = 1 In K9)

RESET I9 AND STRAT COUNTING NEW CYCLE FROM I10

Step-3 check "1X2" cycle in the columns C through I, in the row 6, 7, 8, 9 & 10 (so in the row 10 Found 2 cycles in "C6, C7, C8, C9, C10" & in "G6, G7, G8, G9, G10" result = 2 In K10)


RESET C10 AND STRAT COUNTING NEW CYCLE FROM C11
RESET G10 AND STRAT COUNTING NEW CYCLE FROM G11

Step-4 check "1X2" cycle in the columns C through I, in the row 6, 7, 8, 9, 10 & 11 (so in the row 11Found 2 cycles in "D6, D7, D8, D9, D10, D11" & in "E6, E7, E8, E9, E10, E11" result = 2 In K11)

Example.... all results are calculated manually may me find some errors.


Book1
ABCDEFGHIJKL
1
2
3
4Cycle
5C1C2C3C4C5C6C7Completad
6X111212
7XX21XX1
8X1112120
9211X21X1
101X1X1122
11X2XX2X12
12X1121111
131XX21X10
141112XXX2
151XX11110
16X1X212X1
1711X121X0
1811111X10
19X11XX111
20111121X0
2111122110
2221X11X11
2311111211
24X1121121
251111X111
26X1111210
2712XXXX13
28111212X0
29111221X1
30111X1110
31111X1110
321X112111
332211X1X2
341X121110
3521112X11
361XX21121
37X1111111
38X211XX12
39X12121X1
40111XX122
41XXX11X11
422X21X1X2
43XX12X121
44XX1X1111
4511X11211
461111X220
472X111111
48121X2122
49X1X12120
50X1111X11
51X1X11X20
52X111XX11
53X1122X11
5421X21XX2
55XX21X111
561X2X1211
57X2X11110
5811X11X10
5911X111X0
6021X11122
61X122X110
6221112212
6311121111
641X21X110
651X1X11X1
66XXX11111
67XX221210
6811211110
69X111X110
701112X1X0
711X1112X0
7211X1XXX2
731X1X1X21
7411X22111
751XX1X110
761XXXX120
772X1X1111
7811X12222
791111X110
80111121X0
81
82
Sheet1


Thank you in advance

Regards,
Kishan
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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