I have an Excel file with a column labeled 'Employee ID,' which contains employee IDs. I want to delete the rows where the employee ID starts with the number 1

If the employee ID starts with the number 1, delete the row otherwise, continue with the next row.

image

Hi @Mohammad_Rizwan_03

dt.AsEnumerable().Where(Function(row) Not row("Employee ID").ToString.StartsWith("1")).CopyToDataTable()

Regards,

@Mohammad_Rizwan_03

Another approach try with Filter Data Table activity

Input:

A spreadsheet displays a table with two columns labeled "Name" and "Employee ID," containing various entries. (Captioned by AI)

Regards,

1 Like

@lrtetala Thank you for the prompt response and solution.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.