How to grouping excel data to send to API

Are you looking for segmenting the data into batches?