Vlookup with other Wbook

pedropacheco

New Member
Joined
Jun 1, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hey guys!

Please, could you guys please answer my question.

How can i do vlookup value with an another workbook... but, the problem is, this another workbook always will have another name. So the code can't use a personal name for it.

Then, i will have the workbook that where's my code is wrote and this second where i will open previously but this one always will have another name... is it possible to do vlookup?

i know how to do vlookupvalue basically... but this way i'm talking i do not have any ideas
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Kinda you can :)

First you have to make a Table with some header and just 1 row with file path and filename.
you would have to find VBA code for retreving all files within that folder and filter it to the desired one.

Or you also could use PQ.

The rest is simple. do a PQ. and go for one of the join type. from your description Left Outer or full join would be what you want.
If you provide 2 sample files ill help with the PQ solution.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top