Split Csv file into multiple files according to month in date column

@Diva_P
Welcome to the forum

we can do it with help of GroupBy

As a starter help:

Assign activity:
leftSide: TableList | DataType: List(Of DataTable)
Right side:

(From d in YourDataTableVar.AsEnumerable
Group d by k= CDate(d(“Date”)).Month into grp=Group
Select t=grp.CopyToDataTable).toList

For Each Activity (NOT for each row) | TypeArgument: DataTable item in TableList

  • write out month split excel to Excel - e.g. with write excel
1 Like