Vlookup from a closed workbook?

Lt. Krul

New Member
Joined
May 6, 2002
Messages
32
I'd like to do a vlookup from a closed workbook. can this be done. I don't want my users to have to open the other workbook everytime they use the vlookup function.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
On 2002-05-22 10:31, Lt. Krul wrote:
I'd like to do a vlookup from a closed workbook. can this be done. I don't want my users to have to open the other workbook everytime they use the vlookup function.

Yes, as long as you don't throw in the formula something like INDIRECT.
 
Upvote 0
OK - heres what I have:
workbook A contains cells that have the Vlookup function applied
the function is =VLOOKUP(A16,ProjectName,2,0)
where: A16 is the lookup value
ProjectName is the named Range
2 is the Column I'm interested in
0 is the Range lookup value

ProjectName is defined as: ='[workbook b]sheet1'!$A$2:$E$8000

So far the vlookup only works when Workbook B is open. Any Ideas...(I'm not so good at this programming stuff yet)
 
Upvote 0
Oops...let me clarify something from my past post...

The Cell A14 is attempting to Apply data validation from data in that closed workbook B. The Vlookup reads the value from A14 and attempts to return a value from column C in that same workbook B.

Does that confuse the issue :wink:

I suppose my question now is: can I perform Data validation from a closed workbook?

Thanks.
 
Upvote 0
On 2002-05-22 11:02, Lt. Krul wrote:
OK - heres what I have:
workbook A contains cells that have the Vlookup function applied
the function is =VLOOKUP(A16,ProjectName,2,0)
where: A16 is the lookup value
ProjectName is the named Range
2 is the Column I'm interested in
0 is the Range lookup value

ProjectName is defined as: ='[workbook b]sheet1'!$A$2:$E$8000

So far the vlookup only works when Workbook B is open. Any Ideas...(I'm not so good at this programming stuff yet)

Go to the workbook b, select A2:E8000, go to the Name Box on the Formula Bar, type PROJECTS (a better name, no?), hit enter.

=VLOOKUP(A16,ProjectName,2,0)

becomes something like

=VLOOKUP(A16,'C:.........workbook b.xls'!PROJECTS,2,0)
 
Upvote 0
try creating the formula again with reference to the named formula in the other ss.

- name the formula in the other ss or reference the relevant range.

=VLOOKUP(A16,Workbookb.xls!ProjectName,2,0)

This formula shows the full path when the other SS is closed.

=VLOOKUP(A16,'E:data02Tech02Workbookb.xls'!ProjectName,2,0)

The path will be different on your system.
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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