Hi Everyone,
I need to filter excel data based on specific column. I have a LINQ query but it is not giving correct output. I’m attaching my sample excel below.
my LINQ query:
(From row In ReadDT.AsEnumerable().Skip(1)
Group row By orderNo = row.Field(Of String)(“OrderNo”) Into Group
Select Group.First()).CopyToDataTable()
Input Sheet : my input
RequiredOutput : I need output in that format
Sheet2 : This is the output given by LINQ query
SampleExcel.xlsx (11.6 KB)