Extracting a datatable from a complex table

Hi i have a table to be process. I need to split each vendors to process their payment with lines. So in my attachment the vendor name is repeated means it is one payment transaction. How do i achieve to process this?

Hi @mark_rajkumar1

Can you share the expected output?

Regards

@vrdabberu i need to split to individual vendor and write it to a upload file

looks like a groupby case

Assign Activity
TableList | List(Of DataTable) =

(From d in dtData.AsEnumerable
Group d by k=d("Vendor Name").toString.Trim into grp=Group
Select t = grp.CopyToDataTable).toList

then loop over the TableList var and write it to excel