Using Excel 2000</SPAN></SPAN>
Hi,</SPAN></SPAN>
I want a Formula or may be VBA that can search "x time" for selected value it can be "1", "X", or 2</SPAN></SPAN>
In the column C, there are data with repeated values in the cells C6 and below</SPAN></SPAN>
In the cell B1 is entered value "1" (it could be X or 2 also) which to be search in the column C</SPAN></SPAN>
In the cell B2 is entered value 3 it mean find 3 repeated values "1's" and (it could be 2 to 8) colour the cells </SPAN></SPAN>
Search method should be striate, for example once 3-repeated value find, look for next 3 do not look back you will see C16, 17, 18 find 3 repeated, but C19, C20 stand alone forget it. </SPAN></SPAN>
Checked value will be considered B1, and the repeated value of the cell B2 </SPAN></SPAN>
Some example of the data results</SPAN></SPAN>
Thank you in advance</SPAN></SPAN>
Regards,</SPAN></SPAN>
Kishan </SPAN></SPAN>
Hi,</SPAN></SPAN>
I want a Formula or may be VBA that can search "x time" for selected value it can be "1", "X", or 2</SPAN></SPAN>
In the column C, there are data with repeated values in the cells C6 and below</SPAN></SPAN>
In the cell B1 is entered value "1" (it could be X or 2 also) which to be search in the column C</SPAN></SPAN>
In the cell B2 is entered value 3 it mean find 3 repeated values "1's" and (it could be 2 to 8) colour the cells </SPAN></SPAN>
Search method should be striate, for example once 3-repeated value find, look for next 3 do not look back you will see C16, 17, 18 find 3 repeated, but C19, C20 stand alone forget it. </SPAN></SPAN>
Checked value will be considered B1, and the repeated value of the cell B2 </SPAN></SPAN>
Some example of the data results</SPAN></SPAN>
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Check---> | 1 | |||||
2 | Repeated-> | 3 | |||||
3 | |||||||
4 | |||||||
5 | P1 | ||||||
6 | X | ||||||
7 | 1 | ||||||
8 | 1 | ||||||
9 | 1 | ||||||
10 | X | ||||||
11 | X | ||||||
12 | 2 | ||||||
13 | X | ||||||
14 | 1 | ||||||
15 | X | ||||||
16 | 1 | ||||||
17 | 1 | ||||||
18 | 1 | ||||||
19 | 1 | ||||||
20 | 1 | ||||||
21 | X | ||||||
22 | 1 | ||||||
23 | 1 | ||||||
24 | 1 | ||||||
25 | 1 | ||||||
26 | 1 | ||||||
27 | X | ||||||
28 | 1 | ||||||
29 | 1 | ||||||
30 | 1 | ||||||
31 | 1 | ||||||
32 | 1 | ||||||
33 | 1 | ||||||
34 | 1 | ||||||
35 | 1 | ||||||
36 | X | ||||||
37 | 2 | ||||||
38 | 1 | ||||||
39 | X | ||||||
40 | 1 | ||||||
41 | 1 | ||||||
42 | 1 | ||||||
43 | X | ||||||
44 | 2 | ||||||
45 | X | ||||||
46 | 1 | ||||||
47 | X | ||||||
48 | 1 | ||||||
49 | X | ||||||
50 | 1 | ||||||
51 | 1 | ||||||
52 | 1 | ||||||
53 | 2 | ||||||
54 | 1 | ||||||
55 | 1 | ||||||
56 | X | ||||||
57 | 1 | ||||||
58 | 1 | ||||||
59 | 1 | ||||||
60 | 1 | ||||||
61 | 1 | ||||||
62 | 2 | ||||||
63 | 1 | ||||||
64 | 1 | ||||||
65 | 1 | ||||||
66 | 1 | ||||||
67 | 1 | ||||||
68 | 1 | ||||||
69 | 1 | ||||||
70 | X | ||||||
71 | 1 | ||||||
72 | 1 | ||||||
73 | 1 | ||||||
74 | X | ||||||
75 | 1 | ||||||
76 | 2 | ||||||
77 | X | ||||||
78 | 1 | ||||||
79 | 1 | ||||||
80 | 1 | ||||||
81 | 1 | ||||||
82 | 1 | ||||||
83 | 1 | ||||||
84 | 1 | ||||||
85 | 1 | ||||||
86 | 1 | ||||||
87 | X | ||||||
88 | 1 | ||||||
89 | 1 | ||||||
90 | X | ||||||
91 | 1 | ||||||
92 | 1 | ||||||
93 | 1 | ||||||
94 | 1 | ||||||
95 | 1 | ||||||
96 | X | ||||||
97 | X | ||||||
98 | |||||||
99 | |||||||
100 | |||||||
Sheet1 |
Thank you in advance</SPAN></SPAN>
Regards,</SPAN></SPAN>
Kishan </SPAN></SPAN>
Last edited: