How to remove duplicate values

Hi @Chippy_Kolot

Try this

DT1.AsEnumerable() _
    .GroupBy(Function(row) New With { _
        Key .Name = row.Field(Of String)("Name"), _
        Key .Phno = row.Field(Of Double)("Phno") _
    }) _
    .Select(Function(Group) Group.First()) _
    .CopyToDataTable()

Test (6).xlsx (9.2 KB)

Regards,

1 Like