I’ve a problem. Column A have unique values. I’m trying to split this excel and I want to split by this condition: if column B and column C and column D is same then I can split row 1 and row 2 to separate file. But I can’t this for row 1 and row 3 because the column C is null for row 3. I hope you’ll help me. Thanks.
Thank you! I can split as I want. But I want to split other values too. I mean row 3 and row 4 should be split one by one. And this is a small example I’ve 600 values like that.
Example:
Excel File 1 → 123456 Mary A. Mark C. Jane K.
654321 Mary A. Mark C. Jane K.
(From d in YourDataTableVar.AsEnumerable
Let c1 = d("PERSON 1").toString.Trim
Let c2 = d("PERSON 2").toString.Trim
Let c3 = d("PERSON 3").toString.Trim
Group d by k1=c1, k2=c2, k3=c3 into grp=Group
Select t = grp.CopytoDataTable).ToList
The loop over the TableList Variable and process the split Data