Hi,
I have this excel file as shown below:
I need to filter the excel by the “Country” column and create a new sheet in the same excel for each unique country as such:
Can anyone help please?
Thanks!
Hi,
I have this excel file as shown below:
I need to filter the excel by the “Country” column and create a new sheet in the same excel for each unique country as such:
Can anyone help please?
Thanks!
You can try like this
Read the input excel sheet and store in dt1 variable
Get the list unique country names from Country column using below assign activity
countries= dt1.AsEnumerable().Select(Function(r) r(“Country”).ToString).ToArray.Distinct
Now use excel application scope pointing to the filepath where u need output excel sheet.
inside that try this
a. use a for each activity to loop through each item in countries variable (for item in countries)
inside that try this:
Try this appraoch and let me know
Thanks & Regards,
Nived N
It should be string , i hope u are talking about country collection variable right?
Sorry. The countries variable which I should assign to dt1.AsEnumerable().Select(Function(r) r(“Country”).ToString).ToArray.Distinct
yes it string array varaiable type String
Thanks a lot!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.