Using Excel 2000</SPAN></SPAN>
Hi,</SPAN></SPAN>
Data located in columns C:P in cells C6:P44</SPAN></SPAN>
X & 2 counts result is shown in the columns R:Z in the cells R6:Z44</SPAN></SPAN>
Note: Colours are filled just to show example clearer</SPAN></SPAN>
I need to count X's AND 2's consecutive till change of Sign X from 2 Or 2 From X (Ignore 1's) </SPAN></SPAN>
Example for row 6</SPAN></SPAN>
X = 1 time, result in R6 = 1 </SPAN></SPAN>
2 = 2 time, result in S6 = 2 </SPAN></SPAN>
X = 2 time, result in T6 = 2 </SPAN></SPAN>
2 = 1 time, result in U6 = 1</SPAN></SPAN>
X = 1 time, result in V6 = 1 </SPAN></SPAN>
2 = 1 time, result in W6 = 1</SPAN></SPAN>
Count method will be same for each line</SPAN></SPAN>
Result data example</SPAN></SPAN>
Thank you in advance</SPAN></SPAN>
Regards,</SPAN>
Kishan</SPAN>
Hi,</SPAN></SPAN>
Data located in columns C:P in cells C6:P44</SPAN></SPAN>
X & 2 counts result is shown in the columns R:Z in the cells R6:Z44</SPAN></SPAN>
Note: Colours are filled just to show example clearer</SPAN></SPAN>
I need to count X's AND 2's consecutive till change of Sign X from 2 Or 2 From X (Ignore 1's) </SPAN></SPAN>
Example for row 6</SPAN></SPAN>
X = 1 time, result in R6 = 1 </SPAN></SPAN>
2 = 2 time, result in S6 = 2 </SPAN></SPAN>
X = 2 time, result in T6 = 2 </SPAN></SPAN>
2 = 1 time, result in U6 = 1</SPAN></SPAN>
X = 1 time, result in V6 = 1 </SPAN></SPAN>
2 = 1 time, result in W6 = 1</SPAN></SPAN>
Count method will be same for each line</SPAN></SPAN>
Result data example</SPAN></SPAN>
Book1 | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
1 | |||||||||||||||||||||||||||||
2 | |||||||||||||||||||||||||||||
3 | |||||||||||||||||||||||||||||
4 | |||||||||||||||||||||||||||||
5 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | P8 | P9 | P10 | P11 | P12 | P13 | P14 | X | 2 | X | 2 | X | 2 | X | 2 | X | ||||||
6 | X | 1 | 2 | 1 | 2 | X | X | 1 | 1 | 2 | X | 1 | 1 | 2 | 1 | 2 | 2 | 1 | 1 | 1 | |||||||||
7 | 1 | X | 2 | 2 | 2 | 1 | X | X | 2 | 2 | X | X | 1 | 1 | 1 | 3 | 2 | 2 | 2 | ||||||||||
8 | 1 | X | 1 | 1 | X | X | 2 | 2 | X | X | 1 | 1 | X | X | 3 | 2 | 4 | ||||||||||||
9 | 1 | X | 1 | 2 | 2 | 1 | X | 1 | 1 | X | 1 | 2 | 2 | 1 | 1 | 2 | 2 | 2 | |||||||||||
10 | X | 1 | X | 1 | X | 1 | 1 | X | 1 | 1 | 1 | X | X | 1 | 6 | ||||||||||||||
11 | X | X | X | 1 | 1 | 1 | 1 | X | 1 | X | 2 | 1 | 2 | X | 5 | 2 | 1 | ||||||||||||
12 | 2 | X | 1 | 1 | 1 | 2 | X | X | X | 1 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | 3 | 1 | ||||||||||
13 | X | 1 | X | X | 1 | 1 | 1 | 1 | 1 | 1 | 1 | X | 1 | 1 | 4 | ||||||||||||||
14 | 1 | X | X | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 2 | X | 2 | X | 2 | 1 | 5 | ||||||||||||
15 | X | 2 | X | 1 | 1 | X | 1 | 1 | 1 | 1 | X | 1 | 1 | X | 1 | 1 | 4 | ||||||||||||
16 | 1 | 1 | 1 | 1 | 1 | 1 | X | X | X | 1 | 1 | 1 | 2 | X | 3 | 1 | 1 | ||||||||||||
17 | 1 | 2 | 1 | 2 | X | 1 | 1 | 2 | X | 2 | 1 | 1 | 1 | X | 2 | 1 | 1 | 1 | 1 | 1 | |||||||||
18 | 1 | X | X | 1 | 1 | 2 | X | X | 1 | X | 1 | 1 | X | 1 | 2 | 1 | 4 | ||||||||||||
19 | 1 | X | X | 1 | 1 | 2 | 1 | 1 | 2 | 2 | 1 | X | 1 | 1 | 2 | 3 | 1 | ||||||||||||
20 | 1 | 1 | 1 | X | 1 | 1 | 1 | 1 | X | 1 | 1 | 1 | 1 | 1 | 2 | ||||||||||||||
21 | X | 1 | 2 | X | 1 | 1 | 1 | 2 | X | 1 | 1 | 2 | X | X | 1 | 1 | 1 | 1 | 1 | 1 | 2 | ||||||||
22 | 1 | 1 | 1 | X | 1 | X | X | 1 | X | 1 | 1 | 1 | 1 | 1 | 4 | ||||||||||||||
23 | 1 | 1 | 1 | 1 | 1 | X | X | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 2 | 2 | |||||||||||||
24 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | X | X | 1 | 1 | 2 | |||||||||||||
25 | 1 | 2 | 2 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | X | 1 | 1 | 2 | 1 | |||||||||||||
26 | 1 | 1 | X | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 | |||||||||||||
27 | X | X | X | 1 | 1 | 1 | X | 1 | 1 | 2 | X | 1 | 1 | 1 | 4 | 1 | 1 | ||||||||||||
28 | X | 2 | 1 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | X | X | 1 | X | 1 | 2 | 3 | ||||||||||||
29 | 1 | X | 2 | 2 | 1 | 1 | 1 | 2 | X | X | 1 | 1 | 1 | X | 1 | 3 | 3 | ||||||||||||
30 | 2 | 1 | X | X | 1 | 1 | X | X | 1 | X | 1 | 1 | 1 | 1 | 1 | 5 | |||||||||||||
31 | 1 | X | 1 | 2 | 2 | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 | X | 1 | 3 | 1 | ||||||||||||
32 | 1 | 1 | X | 1 | 2 | 2 | 2 | 1 | 1 | X | 1 | X | 1 | X | 1 | 3 | 3 | ||||||||||||
33 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||
34 | X | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 2 | X | X | 1 | X | X | 1 | 2 | 4 | ||||||||||||
35 | 1 | 2 | 1 | 1 | X | 1 | 1 | 1 | X | 2 | X | 1 | X | X | 1 | 2 | 1 | 3 | |||||||||||
36 | X | 1 | 1 | 1 | 1 | X | 1 | 2 | 1 | 1 | X | 1 | X | X | 2 | 1 | 3 | ||||||||||||
37 | 2 | X | 1 | 1 | 1 | X | X | 1 | 1 | X | 1 | 1 | X | 1 | 1 | 5 | |||||||||||||
38 | 1 | X | 2 | X | 1 | X | 1 | 1 | 1 | 1 | 1 | 2 | 1 | X | 1 | 1 | 2 | 1 | 1 | ||||||||||
39 | X | 1 | X | X | 1 | X | 1 | 1 | X | 1 | 2 | 2 | 1 | 1 | 5 | 2 | |||||||||||||
40 | 1 | X | X | 1 | 2 | X | 1 | 1 | X | 1 | X | 1 | 2 | 1 | 2 | 1 | 3 | 1 | |||||||||||
41 | 1 | X | 1 | 1 | X | 1 | X | X | 2 | 1 | 1 | 1 | 1 | X | 4 | 1 | 1 | ||||||||||||
42 | 1 | 2 | 1 | 1 | 1 | 1 | X | 1 | X | X | 1 | X | 2 | 2 | 1 | 4 | 2 | ||||||||||||
43 | X | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 2 | 2 | 1 | X | 1 | 3 | 1 | ||||||||||||
44 | 2 | X | X | 1 | 1 | X | 1 | 1 | X | X | X | X | 1 | X | 1 | 8 | |||||||||||||
45 | |||||||||||||||||||||||||||||
46 | |||||||||||||||||||||||||||||
47 | |||||||||||||||||||||||||||||
Hoja1 |
Thank you in advance</SPAN></SPAN>
Regards,</SPAN>
Kishan</SPAN>
Last edited: