Hi All,
Kindly find the below input sheet,
and i want output as same as below
It should check the whether the ID and corresponding wage type is same then i need to sum the amount of corresponding ID and wage type, please help me
Hi All,
Kindly find the below input sheet,
and i want output as same as below
It should check the whether the ID and corresponding wage type is same then i need to sum the amount of corresponding ID and wage type, please help me
Hi,
Can you try the following?
deResult = dt.AsEnumerable.GroupBy(Function(r) Tuple.Create(r("Emp-Id").ToString,r("Wage type").ToString)).Select(Function(g) dt.Clone.LoadDataRow({g.Key.Item1,g.Sum(Function(r) Int32.Parse(r("Amount").ToString)).ToString,g.Key.Item2},False)).CopyToDataTable()
Sample20220131-2.zip (4.6 KB)
Regards,
Try the below expression for removing Duplicate values and copy the unique values in the DT
(From p in DT.Select() where( From q in DT.Select() where q(“Emp-id”).Equals(p(“Emp-id”)) Select q).ToArray.Count>1 Select p).ToArray.CopyToDataTable()
Regards
Gokul
Can You Explain me how this work
xlWorkSheet1.Range(SourceCellValue).Copy()
xlWorkSheet6.Range(SourceCellValue).PasteSpecial(XlPasteType.xlPasteValues, XlPasteSpecialOperation.xlPasteSpecialOperationNone, False, False)
Thank you so much Yochi, it is working super fine
Thanks for the reply checked your solution also and it is working fine
Thank you for your reply
Thank you palaniyappan, i got the solution
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.