Hi @Sanket1 ,
I have provided few sample methods how to can achieve Vlook UP in PAD.
Method 1:
You try with PAD action as shown below.

Code:
Excel.Attach DocumentName: $'''VL.xlsx''' Instance=> ExcelInstance
Excel.SetActiveWorksheet.ActivateWorksheetByName Instance: ExcelInstance Name: $'''Sheet2'''
Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: $'''=VLOOKUP(A2,Sheet1!A:B,2,FALSE)''' Column: $'''B''' Row: 2
Excel.CopyCellsFromExcel.CopyCell Instance: ExcelInstance StartColumn: $'''B''' StartRow: 2
Excel.GetFirstFreeColumnRow Instance: ExcelInstance FirstFreeColumn=> FirstFreeColumn FirstFreeRow=> FirstFreeRow
Excel.SelectCellsFromExcel.SelectCells Instance: ExcelInstance StartColumn: $'''B''' StartRow: 2 EndColumn: $'''B''' EndRow: FirstFreeRow - 1
MouseAndKeyboard.SendKeys.FocusAndSendKeysByInstanceOrHandle WindowInstance: ExcelInstance TextToSend: $'''{Control}({V})''' DelayBetweenKeystrokes: 10 SendTextAsHardwareKeys: False
Method 2:
You can try with VBscript as shown below.
VBscript Code:
Const xlUp = -4162
Dim columnToConvert
Const sourceExcelFile = "%Mouser_BOM_Files[0]%"
Const destinationExcelFile = "%Output_Files[0].FullName%"
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.DisplayAlerts = True
Set objSourceWorkbook = objExcel.Workbooks.Open(sourceExcelFile)
Set objDestinationWorkbook = objExcel.Workbooks.Open(destinationExcelFile)
Set objSourceWorksheet = objSourceWorkbook.Sheets(1)
Set objDestinationWorksheet = objDestinationWorkbook.Sheets(1)
sourceLastRow = objSourceWorksheet.Cells(objSourceWorksheet.Rows.Count, "A").End(xlUp).Row
destinationLastRow = objDestinationWorksheet.Cells(objDestinationWorksheet.Rows.Count, "B").End(xlUp).Row
For i = 2 To sourceLastRow
sourceValue = objSourceWorksheet.Cells(i, 1).Value
sourceKValue = objSourceWorksheet.Cells(i, 11).Value
If Not IsEmpty(sourceKValue) And IsNumeric(sourceKValue) Then
For j = 2 To destinationLastRow
destinationValue = objDestinationWorksheet.Cells(j, 2).Value
If sourceValue = destinationValue Then
If sourceKValue = 0 Then
objDestinationWorksheet.Cells(j, 6).Value = ""
objDestinationWorksheet.Cells(j, 7).Value = objSourceWorksheet.Cells(i, 11).Value
objDestinationWorksheet.Cells(j, 8).Value = objSourceWorksheet.Cells(i, 13).Value
objDestinationWorksheet.Cells(j, 9).Value = objSourceWorksheet.Cells(i, 14).Value
Else
objDestinationWorksheet.Cells(j, 6).Value = objSourceWorksheet.Cells(i, 9).Value
objDestinationWorksheet.Cells(j, 7).Value = objSourceWorksheet.Cells(i, 11).Value
objDestinationWorksheet.Cells(j, 8).Value = objSourceWorksheet.Cells(i, 13).Value
objDestinationWorksheet.Cells(j, 9).Value = objSourceWorksheet.Cells(i, 14).Value
End If
Exit For ' Exit the loop once a match is found in destination
End If
Next
End If
Next
' Specify the column you want to convert to General format (for example, column A)
columnToConvert = "F"
' Convert the column to General format
objDestinationWorksheet.Columns(columnToConvert).NumberFormat = "General"
objSourceWorkbook.Close False
objDestinationWorkbook.Close True
objExcel.Quit
Set objSourceWorksheet = Nothing
Set objDestinationWorksheet = Nothing
Set objSourceWorkbook = Nothing
Set objDestinationWorkbook = Nothing
Set objExcel = Nothing
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy