Remove row from excel sheet

hello @sshitol ,

See Below Output is expected output

dt_Input.AsEnumerable().Where(Function(row)  row.Field(Of Double)("Weight") <> 0 AndAlso  Not (row.Field(Of String)("Ticker").Count(Function(c) c = "$"c) > 1 OrElse  (row.Field(Of String)("Ticker").Length = 5 AndAlso row.Field(Of String)("Ticker").EndsWith("XX")))).CopyToDataTable

Main.xaml (8.2 KB)

Regards
Dheerandra Vishwakarma

1 Like