Using Excel 2000</SPAN></SPAN>
Hi,</SPAN></SPAN>
Note: Fill colours not required, it is just to shown to explain the example clearer</SPAN></SPAN>
I want a Formula or batter will be the VBA solution to " Separate counts depending on start patterns ", data in column C:D, count result in columns L:Q & in the S:X</SPAN></SPAN>
Count examples of the row 6, starting C6 has 1|X, so count instance and put them in cell L6 = 2 (Not in the S6), then look count for reverse match pattern X|1=1 put them in cell M6 =1 (not in the T6) then E3= 1|2 put them in N6 (Not in the V6)</SPAN></SPAN>
So the count must be as per left to right order and match put in to L:Q & S:X as per order too. </SPAN></SPAN>
Result data example</SPAN></SPAN>
Thank you in advance</SPAN></SPAN>
Regards,</SPAN></SPAN>
Kishan</SPAN></SPAN>
Hi,</SPAN></SPAN>
Note: Fill colours not required, it is just to shown to explain the example clearer</SPAN></SPAN>
I want a Formula or batter will be the VBA solution to " Separate counts depending on start patterns ", data in column C:D, count result in columns L:Q & in the S:X</SPAN></SPAN>
Count examples of the row 6, starting C6 has 1|X, so count instance and put them in cell L6 = 2 (Not in the S6), then look count for reverse match pattern X|1=1 put them in cell M6 =1 (not in the T6) then E3= 1|2 put them in N6 (Not in the V6)</SPAN></SPAN>
So the count must be as per left to right order and match put in to L:Q & S:X as per order too. </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 | |||
1 | ||||||||||||||||||||||||||||
2 | ||||||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||||
4 | ||||||||||||||||||||||||||||
5 | P1 | P2 | P3 | P4 | P5 | P6 | P7 | 1|X | X|1 | 1|2 | 2|1 | X|2 | 2|X | X|1 | 1|X | 2|1 | 1|2 | 2|X | X|2 | |||||||||
6 | 1|X | X|1 | 1|2 | 1|1 | 2|2 | 1|X | 1|1 | 2 | 1 | 1 | ||||||||||||||||||
7 | X|1 | X|1 | X|1 | 1|X | 1|1 | 1|X | X|1 | 4 | 2 | |||||||||||||||||||
8 | 1|X | 1|2 | 2|1 | X|1 | 1|X | 1|2 | 2|1 | 2 | 1 | 2 | 2 | |||||||||||||||||
9 | 2|X | 1|1 | 1|2 | X|X | X|1 | 1|1 | 2|1 | 1 | 1 | 1 | 1 | |||||||||||||||||
10 | 1|X | 2|2 | 2|1 | X|X | 2|2 | X|X | 1|1 | 1 | 1 | |||||||||||||||||||
11 | 1|X | 1|1 | X|X | 2|2 | X|X | 1|1 | X|X | 1 | ||||||||||||||||||||
12 | X|X | X|1 | 1|1 | 1|X | 1|X | 2|1 | 2|X | 1 | 1 | 2 | 1 | |||||||||||||||||
13 | 1|X | X|1 | 2|1 | 2|1 | 1|1 | 2|X | 2|X | 1 | 1 | 2 | 2 | |||||||||||||||||
14 | X|2 | X|1 | 1|X | 1|1 | 1|1 | X|1 | 1|X | 1 | 2 | 2 | ||||||||||||||||||
15 | 1|1 | 1|1 | 1|1 | X|X | X|1 | 1|1 | 2|X | 1 | 1 | |||||||||||||||||||
16 | 1|2 | 1|2 | X|1 | 1|2 | X|2 | 1|1 | 1|X | 3 | 1 | 1 | 1 | |||||||||||||||||
17 | 1|X | X|1 | 1|2 | X|X | 1|X | 1|1 | X|1 | 2 | 2 | 1 | ||||||||||||||||||
18 | 1|1 | 1|X | 1|1 | 1|1 | X|1 | 1|1 | 1|1 | 1 | 1 | |||||||||||||||||||
19 | X|1 | 2|X | 1|1 | 1|2 | X|1 | 1|2 | X|X | 2 | 2 | 1 | ||||||||||||||||||
20 | 1|1 | 1|X | 1|X | X|1 | X|1 | 1|1 | 1|1 | 2 | 2 | |||||||||||||||||||
21 | 1|1 | 1|1 | 1|X | X|2 | 1|1 | 1|1 | 1|2 | 1 | 1 | 1 | ||||||||||||||||||
22 | 1|1 | 1|1 | 1|1 | 1|1 | 1|1 | 2|X | X|1 | 1 | 1 | |||||||||||||||||||
23 | 1|2 | 2|1 | 1|1 | 1|1 | 1|1 | 1|X | 1|1 | 1 | 1 | 1 | ||||||||||||||||||
24 | 1|1 | X|1 | 1|1 | 1|1 | 1|1 | 1|1 | 2|1 | 1 | 1 | |||||||||||||||||||
25 | X|X | X|1 | 1|1 | X|1 | 1|2 | X|1 | 1|1 | 3 | 1 | |||||||||||||||||||
26 | X|2 | 1|1 | 2|1 | 1|1 | 1|1 | X|X | 1|X | 1 | 1 | 1 | ||||||||||||||||||
27 | 1|X | 2|2 | 1|1 | 1|2 | X|X | 1|1 | 1|X | 2 | 1 | |||||||||||||||||||
28 | 2|1 | X|X | 1|1 | X|X | 1|X | 1|1 | 1|1 | 1 | 1 | |||||||||||||||||||
29 | X|1 | 2|1 | 2|X | X|1 | 1|2 | X|1 | 1|2 | 3 | 1 | 2 | 1 | |||||||||||||||||
30 | X|1 | X|X | 1|1 | 1|1 | 1|1 | 1|X | 1|1 | 1 | 1 | |||||||||||||||||||
31 | ||||||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||||
Sheet7 |
Thank you in advance</SPAN></SPAN>
Regards,</SPAN></SPAN>
Kishan</SPAN></SPAN>
Last edited: