Getting the filepath without using Indirect

preetx2

New Member
Joined
Jun 21, 2016
Messages
6
Hello,

I am trying to write a vlookup function where we are extracting numbers from different files in the same folder.

This is what I have:
=VLOOKUP(A1,"'M:\Funds\0-Valuations\Valuations 2016\Valuations Q2 2016\["&B1&" Valuation Calcs 06-30-16.xlsx]Investment History'!$D$3:$E$300",2,FALSE)


Below is simple version of that, however, I need to change V4 to cell B1, so when we change cell to V5 the file path automatically updates
=VLOOKUP(A1,'M:\Funds\0-Valuations\Valuations 2016\Valuations Q2 2016\[V4 Valuation Calcs 06-30-16.xlsx]Investment History'!$D$3:$E$183,2,FALSE)


I am trying to avoid using indirect because I need the formula to work with closed workbooks as well. Is there a way of writing this formula without using indirect function and VBA.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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