FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,366
- Office Version
- 365
- 2016
- Platform
- Windows
Hello and Happy New Year too all,
I have a range of cells that in column R are the count of number of words in column Q by row. I did not post the contents of column Q because they are not so much in the question. In column S, I now have the cumulative total starting from R2. Once the cumulative total in column S is less than or equal to 90, that would be the first group in the loop. The next loop would start in R7 and count until the cumulative total is less than or equal to 90. And so on.
With the set of data, I would expect 11 grouping, or the loop to process 11 times. How can I achieve this loop, of is there a formula I can use in column S to get me the highest number in each grouping less than 90. Basically, what I'm doing, column Q has some text that I'm transferring over to ppt. I have all of that working, but right now it's static to just doing every three rows. I would like to make it dynamic to select any number of rows but not greater than 90. I hope this make sense.
R2:R6 = 90
R7:R9 = 67
R10:R12 = 79
R13:R15 = 76
R16:R19 = 90
and so on...
I have a range of cells that in column R are the count of number of words in column Q by row. I did not post the contents of column Q because they are not so much in the question. In column S, I now have the cumulative total starting from R2. Once the cumulative total in column S is less than or equal to 90, that would be the first group in the loop. The next loop would start in R7 and count until the cumulative total is less than or equal to 90. And so on.
With the set of data, I would expect 11 grouping, or the loop to process 11 times. How can I achieve this loop, of is there a formula I can use in column S to get me the highest number in each grouping less than 90. Basically, what I'm doing, column Q has some text that I'm transferring over to ppt. I have all of that working, but right now it's static to just doing every three rows. I would like to make it dynamic to select any number of rows but not greater than 90. I hope this make sense.
R2:R6 = 90
R7:R9 = 67
R10:R12 = 79
R13:R15 = 76
R16:R19 = 90
and so on...
11 | 11 |
29 | 40 |
12 | 52 |
16 | 68 |
22 | 90 |
24 | 114 |
26 | 140 |
17 | 157 |
25 | 182 |
23 | 205 |
31 | 236 |
30 | 266 |
11 | 277 |
35 | 312 |
23 | 335 |
27 | 362 |
16 | 378 |
24 | 402 |
11 | 413 |
27 | 440 |
35 | 475 |
23 | 498 |
11 | 509 |
30 | 539 |
34 | 573 |
51 | 624 |
22 | 646 |
45 | 691 |
36 | 727 |
39 | 766 |
25 | 791 |