![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 31
|
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.
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 31
|
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) |
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 31
|
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 I suppose my question now is: can I perform Data validation from a closed workbook? Thanks. |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=VLOOKUP(A16,ProjectName,2,0) becomes something like =VLOOKUP(A16,'C:.........workbook b.xls'!PROJECTS,2,0) |
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|