I have two excel A & B Having bank statement data with multiple rows & Column
Requirements
1st Excel A : Read Column name :“Description/B” Check for word "DR & CR "
& add extra column name “Status” and mention status like Outgoing for DR & Incoming for CR
2nd : Excel B : Read Column name “Description” for Every Check No like : “CHQ#541114897” and look for match in Excel A : Column name :“Description/B” IF we found matching check No in both Excel A & B
then add status : Match by adding extra new "Status "column in Excel B
For LINQ do we need Database like MSSQL as i don’t have at …need to do using excel only …if not then how to write LINQ please let me know if you u can bro
No database is needed. LINQ in UiPath works directly on the DataTables you read from Excel.
Change accordingly… Example:
For Each rowB In dtB.AsEnumerable()
Dim checkNo = rowB("Description").ToString
If dtA.AsEnumerable().
Any(Function(r) r("Description/B").ToString.Contains(checkNo)) Then
rowB("Status") = "Match"
End If
Next
So you can query Excel data with LINQ without MSSQL.
Hello @prashant1603765 Write range back to excel changes my excel layout (excel has 4 rows above headers) is there any other way to update , Excel B : ColumnName : CheckNoStatus , Cells values for each row like Match/NotMatch