Assuming exactly the data you have shown here, you’d need to read the sheet into a datatable. Then loop through the datatable and with proper logic look for strStart. Then after you’ve gotten strStart, you continue looping and stick the values into an array until you find strEnd.
Another option would be to read it into a datatable then loop through looking for strStart and strEnd. When you find each one, you put its row index into a variable ie startIndex (INT32) and endIndex (INT32). Then you can pass startIndex+1 and endIndex-1 to the Read Range activity to read back in just the values you want as rows in a secondary datatable.
However, I should point out that this is one of those times I look at the source data and ask the question…can we get it in a better format? For example, if you could get it as two columns it would be better - column 1 is Month and Year, column 2 is value.
Iterate through the datatable with the excel-output
4a. if row(“Primary Number”).toString.Equals(“March 2021”) → Then ‘Break activity’ → else no activity
4b. if row(“Primary Number”).toString.Equals(“April 2021”) → Then set the boolean = true → else no activity
4c. if YourVariableName.Equals(True) AND NOT row(“Primary Number”).toString.Equals(“April 2021”) → then add the row to the values-dt → else no activity