@Shubham_Jain2
Fallow the steps below. If I helped you, please market it as solved.
To perform VLookup between two worksheets in UiPath without using the Lookup Data Table activity multiple times, you can follow these steps using the data manipulation feature in Excel:
Step 1
Read both worksheets:
Use the Read Range activity to read the data from both worksheets and store it in two DataTable variables, say dtExcel1 (for the first worksheet) and dtExcel2 (for the second worksheet).
Step 2
Perform the Join (table merging):
Use the Join Data Tables activity to join the two DataTables based on the common column “Service Account Number”.
Set dtExcel1 as Input DataTable1.
Set dtExcel2 as Input DataTable2.
Select the Inner Join option to combine the data based on the “Service Account Number” column.
In the Join Column field, select the “Service Account Number” column to match.
Step 3
Filter the required columns:
After performing the join, the result will be a DataTable that contains the data from both sheets. Use the Filter Data Table or Remove Data Column activity to keep only the columns you want (in this case, “Service Account Number” from sheet 1 and “Cost Center”, “GL” and “Contact Name” from sheet 2).
Step 4
Write the result:
Use the Write Range activity to write the result to a new sheet or Excel file, as needed.
This allows you to perform the “VLookup” efficiently, using the Join Data Tables activity instead of multiple individual searches.