two of a few techniques canbe applied:
Fiiling up - Group By
- after read in a datatable we can fillup the missing a values
- then with a group by we can build and process the groups
Index calculation - Skip/Take Segmentation
- calculate all rows index where A col is not empty
- then slice the data with skip and take like
dtVar.AsEnumerable.Skip(0).Take(6-0),dtVar.AsEnumerable.Skip(6).Take(X-6) …
We also would recommend to filter out any blank seperator rows before running any aproach mentioned above