Employe Depatrment
Ram HR
Shyam FINANCE
Kumar HR
Yashin Accounts
convert departments to sheets in UiPath give the flow
Employe Depatrment
Ram HR
Shyam FINANCE
Kumar HR
Yashin Accounts
convert departments to sheets in UiPath give the flow
Hi
Hope the below steps would help you resolve this
List_sheet = {“ Employe Depatrment”, “Ram HR”, “Shyam FINANCE”, “Kumar HR”, “Yashin Accounts”}
Where list_sheet is a variable of type System.Generic.Collections.List(of String)
And initialise with default value as New List(of String) in varibale labor
Now use a FOR EACH activity and pass above list as input and change the type argument as string
Inside the loop use either a WORKBOOK WRITE RANGE activity where pass a new excel file path and sheetname as item.ToString
Or
You can use INSERT SHEET activity with sheet name same as above
https://docs.uipath.com/activities/other/latest/productivity/insert-sheet-x
This will create a workbook with all the above sheet names
Cheers @Balagola_Bharath_Kumar
lets assume we want to group by all rows by the departement and split it to different worksheets we can do
Grouping the data:
e.g.
Assign Activity:
TableList | List(Of DataTable) =
(From d in dtData.AsEnumerable()
Group d By k=d("Department").toString.ToUpper.Trim
Select t=grp.CopyToDataTable).toList
For Each Activity | tbl in TableList | TypeArgument: DataTable
To convert the list of employees and their respective departments into separate Excel sheets using UiPath, you can follow this workflow:
Read Data:
Group Data by Department:
Create Excel Files:
Write Data to Excel Sheets:
Thanks!!
Hope it’s clarified @Balagola_Bharath_Kumar
Not sure , lets check and conform