I have 10 rows in master sheet and want to evenly distribute the list to 3 different worksheets. Do you know how I can do that?
Input
Master list:
Output:
Team 1 sheet:
Team 2 sheet:
Team 3 sheet:
Thank you so much!
I have 10 rows in master sheet and want to evenly distribute the list to 3 different worksheets. Do you know how I can do that?
Input
Master list:
Output:
Team 1 sheet:
Team 2 sheet:
Team 3 sheet:
Thank you so much!
Follow the steps
Enumerable.Range(1,Cint(Math.floor(dt.RowCount/3)))
"Sheet" + currentitem.ToString
and datatable as dt.AsEnumerable.Skip((currentitem-1)*0).Take(3).CopyToDataTable`(Cint(Math.floor(dt.RowCount/3))*3).Equals(dt.Rowcount)
"Sheet" + Cint(Math.floor(dt.RowCount/3)).ToString
and datatable as dt.AsEnumerable.Skip(Cint(Math.floor(dt.RowCount/3))*3).CopyToDataTable`Cheers
I got an error message at the append range activity
In sheet value write:
“Sheet”+Cint(Math.Floor(dt_masterlist.Rowcount/5)).ToString
And same in datatable value in between as well : Math.Floor(dt_masterlist.Rowcount/5
Thanks,
Ajay Mishra