Re order data table and writting Excel (simple questions)

Hi @uipath_spain,

Then use two write range to write in different position of the sheet.
1.
DataView view = date.DefaultView;
view.Sort = “date1 ASC”;
DataTable sortedDate = view.ToTable();
DataTable1.AsEnumerable().Take(2).CopyToDataTable()

DataView view = date.DefaultView;
view.Sort = “date1 Desc”;
DataTable sortedDate = view.ToTable();
DataTable1.AsEnumerable().Take(2).CopyToDataTable()

And in white range give the starting position.

Regards,
Arivu