vlookup using path creation

Corbana

New Member
Joined
Nov 9, 2005
Messages
23
ok its hard to explain what i am trying to do but here goes:

range names in { }
forumlas in ** **

[book1.xls]

--------1-----------------------------------2
A 11/11/2005 **=TODAY()** -----051111 ** =TEXT($B$2,"yymmdd")**
B 'c:\test\ {path}
C 051111.xls {filename} **=B2&".xls"
D 'c:\test\[051111.xls]'!$A$1:$J$10 {ranged} ** =path&"["&filename&"]"&"!$A$1:$J$10" **

F 123456
G **=vlookup(F1,ranged,1)**

[051111.xls]

A1 = 123456
B1 = 1
C1 = 3
D1 = 9
E1 = 15

ok the problem is that it is using the range "{ranged} in book1.xls for the vlookup and i want it to use the path i have in that cell.

anyone able to offer assistance.
 

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
"ok its hard to explain what i am trying to do but here goes"

Review the html maker faq thread at the top of this board, then use the addin to post up a snapshot of your sheet that illustrates what you're trying to to.
 
Upvote 0
INDIRECT only works if the workbook you are referencing is open, in which case you shouldn't need the path but you need the sheet name

If A6 contained

[051115]Sheet1!$A$1:$J$10

then this formula should work

=VLOOKUP(A8,INDIRECT(ranged),2,0)

If you want to reference a closed workbook then you might need INDIRECT.EXT which is part of the MOREFUNC add-in
 
Upvote 0
is their any way to do this using vba maybe? even if it was to import the file into another sheet in the spreadsheet and then vloopkup on that information that would do.
 
Upvote 0

Forum statistics

Threads
1,207,258
Messages
6,077,345
Members
446,279
Latest member
hoangquan2310

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