Copy all the details that are related to the 1st column

there are several options to implement it. Feel free to pickup this one most matching to your skill set:

  • finding index: for each row / if check and memorizing row index e.g. as the output index from for each
  • calculating the segment start index and length
  • using skip T take method for slicing the table

For each row

  • loop over the rows
  • detect when a segment is starting / ending
  • transfer the datarow from segment, when collecting to a helper datatable

we do know that it can be done quickly but it has to handle specifics e.g. first row, end of loop …

TakeWhile Approach
Vars:

Segmenting:

Writing:

Demo:

Find starter help here:
DTSlice_BySegmentSize_ToTableList.xaml (10.5 KB)