I am a beginner, After applying the filter on excel, I want to delete the filtered columns data but I either end up deleting the whole colmn or rows after filtering. Any help would be greatly appriciated. I want to delete the data in the column after filtering the column.
So under the district column I want to delete the highlighted values in that column after filtering. Just delete in that column and not the whole column itself.
I apologise, I think I could have been more clear. I want to delete the data in the column after filtering the column. without deleting datas in the other columns or deleting all data from that particular column
DT.AsEnumerable().Where(Function(row) If(row(“District”).GetType() Is GetType(String), Not row.Field(Of String)(“District”).StartsWith(“169”), True) AndAlso If(row(“District”).GetType() Is GetType(Double), Not row.Field(Of Double)(“District”).ToString().StartsWith(“169”), True)).CopyToDataTable()