BlueNoteStan
New Member
- Joined
- Dec 19, 2023
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Strap in, this is gonna be long and possibly confusing.
I have to test and record the first and last data point in groups of 25. Each quarter, the iterations change, so in Q1, I'm testing 1, 25, 26, 50, 51, 75, 76, 100. . . In Q2, I'm testing 2, 24, 27, 49, 52, 74, 77, 99. . . and so on.
These pattern works great with the formula: =IF(MOD(ROW(),25)=1,"TEST",IF(MOD(ROW(),25)=0,"TEST","")) in the first column, and then =IF(MOD(ROW(),25)=2,"TEST",IF(MOD(ROW(),25)=24,"TEST","")) in the next and so on. This gives me a very pleasing pattern:
This would solve my problem, but in my groups of 25, some of them are not able to be tested. For example, in my first group of 25, only numbers 10, 11, 13, 15, 17, and 22 are able to be tested. I have a column (Column B on my actual sheet) dedicated to labeling which are able to be tested with strings "OCCUPIED" and "OPEN". I would like a formula that checks column B for the string "OPEN" in each group of 25 and capturing those rows in an array, then using this array to populate the string "TEST".
In this example, row 10 and 22 are the first and last rows in this array, they should have "TEST" in the column I copy the formula. In the next column, rows 11 and 17 are the next iteration of the pattern, and they should have the string "TEST" and so on.
I would like this pattern to be able to populate this string in up to 120 groups of 25 (basically, I'll need the formula to check every group of 25 for the range I copy it to).
I've been racking my brain for months trying to figure this out, but I can't seem to get the logic right and I keep getting a lot of errors. I would really appreciate any and all help with this formula!
I have to test and record the first and last data point in groups of 25. Each quarter, the iterations change, so in Q1, I'm testing 1, 25, 26, 50, 51, 75, 76, 100. . . In Q2, I'm testing 2, 24, 27, 49, 52, 74, 77, 99. . . and so on.
These pattern works great with the formula: =IF(MOD(ROW(),25)=1,"TEST",IF(MOD(ROW(),25)=0,"TEST","")) in the first column, and then =IF(MOD(ROW(),25)=2,"TEST",IF(MOD(ROW(),25)=24,"TEST","")) in the next and so on. This gives me a very pleasing pattern:
This would solve my problem, but in my groups of 25, some of them are not able to be tested. For example, in my first group of 25, only numbers 10, 11, 13, 15, 17, and 22 are able to be tested. I have a column (Column B on my actual sheet) dedicated to labeling which are able to be tested with strings "OCCUPIED" and "OPEN". I would like a formula that checks column B for the string "OPEN" in each group of 25 and capturing those rows in an array, then using this array to populate the string "TEST".
In this example, row 10 and 22 are the first and last rows in this array, they should have "TEST" in the column I copy the formula. In the next column, rows 11 and 17 are the next iteration of the pattern, and they should have the string "TEST" and so on.
I would like this pattern to be able to populate this string in up to 120 groups of 25 (basically, I'll need the formula to check every group of 25 for the range I copy it to).
I've been racking my brain for months trying to figure this out, but I can't seem to get the logic right and I keep getting a lot of errors. I would really appreciate any and all help with this formula!