i have two columns of data in excel in which i have to filter the one column using the another column of data
Hey @vimal ,
You can use the Read Range activity to read the datatable and then use Filter Datatable activity and put the ColumnName in the left side and the value to filter at the right side, this way you will get the required output.
Thanks,
Sanjit
Hi @vimal
To filter one column of data using another column in UiPath, you can use the following steps:
- Use the “Excel Application Scope” activity to open the Excel file that contains the data.
- Use the “Read Range” activity to read the data from the Excel file and store it in a DataTable variable.
- Use the “Filter DataTable” activity to filter the DataTable based on the values in the other column.
- In the “Filter DataTable” activity, set the “Input” property to the DataTable variable you created in step 2.
- Set the “Output” property to a new DataTable variable that will hold the filtered data.
- In the “Filter Wizard”, select the column you want to filter by and the criteria you want to use.
- Click “OK” to apply the filter.
- Use the “Write Range” activity to write the filtered data back to the Excel file.
- Close the Excel file using the “Close Workbook” activity.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.