Using Xlookup to pull data from variable excel files (that are not open)

therealjdj

New Member
Joined
Jul 8, 2013
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hey all,
I have around 200 excel files that are named as such: unique_ID_number.xlsx

I need to pull two data points from each of these files. So I have a master sheet that lists all the unique IDs. I need a way to automatically pull this data but the only solution I can find, requires me to open all 200 excels - sounds like it's due to using INDIRECT. How could this be avoided?

Here is what I have:

=XLOOKUP(J1,INDIRECT(CONCATENATE("'[",$D4,".xlsx]Sheet1'!$A$1:$A$15")),INDIRECT(CONCATENATE("'[",$D4,".xlsx]Sheet1'!$F$1:$F$15")),"ERROR",0,1)

In this case I am looking for value J1
and
the unique ID is listed in column D

Help please!

Thanks all
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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