I have excel and i want after 4 digit from account number column through linq,because some spend time through other way because huge amount of data.
input.xlsx (10.6 KB)
Hi,
Can you share expected output?
Regards,
i want only after 4 digit in add in another column (Last Four Digit)
Hi,
Let’s say dtResult has 2 columns : AccountNumber and Last4digit
Then
dtResult = dt.AsEnumerable.Select(Function(r) dtResult.LoadDataRow({r("AccountNumber").ToString,Strings.Right(r("AccountNumber").ToString,4)},False)).CopyToDataTable
note: dt is datatable from the excel file.
Regards,
Hi,
Can you try the following expression in MessageBox?
Strings.Right(CurrentRow("AccountNumber").ToString,4)
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.