How to use dynamically vlookup for two different excel file

Hello everyone,

I have two excel file and i have to use vlookup

Above image is first excel file in the column grn status using vlookup as shown in image

In second image i have to select 11 column ( Po no to Grn )

I can do by using write cell but if the any extra column add in between those columns then bot will failed so i have to select column PO No to GRN the. Any column will add it wont be affect.

Thanks

@suraj_gaikwad

Then first read the second excel and check where your required columns are there using indexof method

Then you can use the respective columns in the pivot

Cheers