Hi,
Column R there is numbers with gaps (only 1 to 9), I want to count number of rows (in every intervals) between values 1 to 9 and result in range U6 down and in last interval count rows “1” to data end of the column Q
Example...
VBA solution if possible
Thank you in advance
Kishan
Column R there is numbers with gaps (only 1 to 9), I want to count number of rows (in every intervals) between values 1 to 9 and result in range U6 down and in last interval count rows “1” to data end of the column Q
Example...
Book1 | |||||||
---|---|---|---|---|---|---|---|
Q | R | S | T | U | |||
1 | |||||||
2 | |||||||
3 | |||||||
4 | Rows Count | ||||||
5 | 1 to 9 | ||||||
6 | 1 | 1 | 1st Time | 26 | |||
7 | 2 | 2 | 2nd Time | 19 | |||
8 | 3 | 3rd Time | |||||
9 | 4 | 3 | |||||
10 | 5 | 4 | |||||
11 | 6 | 5 | |||||
12 | 7 | ||||||
13 | 8 | 6 | |||||
14 | 9 | ||||||
15 | 10 | ||||||
16 | 11 | ||||||
17 | 12 | ||||||
18 | 13 | ||||||
19 | 14 | ||||||
20 | 15 | ||||||
21 | 16 | ||||||
22 | 17 | ||||||
23 | 18 | ||||||
24 | 19 | ||||||
25 | 20 | 7 | |||||
26 | 21 | ||||||
27 | 22 | ||||||
28 | 23 | ||||||
29 | 24 | 8 | |||||
30 | 25 | ||||||
31 | 26 | 9 | |||||
32 | 27 | 1 | |||||
33 | 28 | 2 | |||||
34 | 29 | ||||||
35 | 30 | ||||||
36 | 31 | ||||||
37 | 32 | ||||||
38 | 33 | 3 | |||||
39 | 34 | 4 | |||||
40 | 35 | 5 | |||||
41 | 36 | 6 | |||||
42 | 37 | 7 | |||||
43 | 38 | ||||||
44 | 39 | ||||||
45 | 40 | ||||||
46 | 41 | ||||||
47 | 42 | ||||||
48 | 43 | ||||||
49 | 44 | ||||||
50 | 45 | ||||||
Sheet1 |
VBA solution if possible
Thank you in advance
Kishan