Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Hi TWIMC,
Usually when referencing into a different workbook, Excel constructs the formula like so: =VLOOKUP(B10;'C:\folder path\My Documents\[workbookname.xls]worksheetname'!$G$10:$H$20;2;FALSE) My question is, is there a way to have a VLOOKUP formula reference the table array parameter in the following manner? =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) where A2 = 'C:\folder path\My Documents\[workbookname.xls]worksheetname' This would allow the end user to specify which workbook/worksheet the VLOOKUP function is to reference. TIA KM |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Use INDIRECT() function
Try the below which will help ... In Book1, Sheet1, cell A1 type: "This is a test" (without the quotation marks). In Book2, Sheet1, cell A1 type: "Book1" (without the quotation marks). In Book2, Sheet1, cell A2 type: "Sheet1" (without the quotation marks). In Book2, Sheet1, cell A3 type: "A1" (without the quotation marks). Save both workbooks. In Book2, Sheet1, cell B1 type the following formula: =INDIRECT("'["&A1&".xls]"&A2&"'!"&A3) -- If this post helps click Yes --------------- Jacob Skaria "Kevin McCartney" wrote: Hi TWIMC, Usually when referencing into a different workbook, Excel constructs the formula like so: =VLOOKUP(B10;'C:\folder path\My Documents\[workbookname.xls]worksheetname'!$G$10:$H$20;2;FALSE) My question is, is there a way to have a VLOOKUP formula reference the table array parameter in the following manner? =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) where A2 = 'C:\folder path\My Documents\[workbookname.xls]worksheetname' This would allow the end user to specify which workbook/worksheet the VLOOKUP function is to reference. TIA KM |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Hi Kevin,
You need to use the INDIRECT function here Instead of: =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) Use: =VLOOKUP(B10,INDIRECT(A2&"!$G$10:$H$20"),2,FALSE) Alan -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200905/1 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Hi Kevin,
Indirect will work as Jacob & Alan suggested, but keep in mind the other workbook has to be open for indirect to work. John "Kevin McCartney" wrote in message ... Hi TWIMC, Usually when referencing into a different workbook, Excel constructs the formula like so: =VLOOKUP(B10;'C:\folder path\My Documents\[workbookname.xls]worksheetname'!$G$10:$H$20;2;FALSE) My question is, is there a way to have a VLOOKUP formula reference the table array parameter in the following manner? =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) where A2 = 'C:\folder path\My Documents\[workbookname.xls]worksheetname' This would allow the end user to specify which workbook/worksheet the VLOOKUP function is to reference. TIA KM |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Like Jaf points out, is there a function that works when the reference file
is closed, or does it work regardles in Excel 2007? "Jacob Skaria" wrote: Use INDIRECT() function Try the below which will help ... In Book1, Sheet1, cell A1 type: "This is a test" (without the quotation marks). In Book2, Sheet1, cell A1 type: "Book1" (without the quotation marks). In Book2, Sheet1, cell A2 type: "Sheet1" (without the quotation marks). In Book2, Sheet1, cell A3 type: "A1" (without the quotation marks). Save both workbooks. In Book2, Sheet1, cell B1 type the following formula: =INDIRECT("'["&A1&".xls]"&A2&"'!"&A3) -- If this post helps click Yes --------------- Jacob Skaria "Kevin McCartney" wrote: Hi TWIMC, Usually when referencing into a different workbook, Excel constructs the formula like so: =VLOOKUP(B10;'C:\folder path\My Documents\[workbookname.xls]worksheetname'!$G$10:$H$20;2;FALSE) My question is, is there a way to have a VLOOKUP formula reference the table array parameter in the following manner? =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) where A2 = 'C:\folder path\My Documents\[workbookname.xls]worksheetname' This would allow the end user to specify which workbook/worksheet the VLOOKUP function is to reference. TIA KM |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Like Jaf points out, is there a function that works when the referenced file
is closed, or does it work regardles in Excel 2007? TIA KM "Alan McQuaid via OfficeKB.com" wrote: Hi Kevin, You need to use the INDIRECT function here Instead of: =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) Use: =VLOOKUP(B10,INDIRECT(A2&"!$G$10:$H$20"),2,FALSE) Alan -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200905/1 |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
Like Jaf points out, is there a function that works when the referenced file
is closed, or does it work regardles in Excel 2007? TIA KM "Jacob Skaria" wrote: Use INDIRECT() function Try the below which will help ... In Book1, Sheet1, cell A1 type: "This is a test" (without the quotation marks). In Book2, Sheet1, cell A1 type: "Book1" (without the quotation marks). In Book2, Sheet1, cell A2 type: "Sheet1" (without the quotation marks). In Book2, Sheet1, cell A3 type: "A1" (without the quotation marks). Save both workbooks. In Book2, Sheet1, cell B1 type the following formula: =INDIRECT("'["&A1&".xls]"&A2&"'!"&A3) -- If this post helps click Yes --------------- Jacob Skaria "Kevin McCartney" wrote: Hi TWIMC, Usually when referencing into a different workbook, Excel constructs the formula like so: =VLOOKUP(B10;'C:\folder path\My Documents\[workbookname.xls]worksheetname'!$G$10:$H$20;2;FALSE) My question is, is there a way to have a VLOOKUP formula reference the table array parameter in the following manner? =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) where A2 = 'C:\folder path\My Documents\[workbookname.xls]worksheetname' This would allow the end user to specify which workbook/worksheet the VLOOKUP function is to reference. TIA KM |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VLOOKUP
You can download an add-in called Morefunc which has a function called
INDIRECT.EXT that will work if the source book is closed http://xcell05.free.fr/morefunc/english/index.htm If this post helps click Yes --------------- Jacob Skaria "Kevin McCartney" wrote: Like Jaf points out, is there a function that works when the referenced file is closed, or does it work regardles in Excel 2007? TIA KM "Jacob Skaria" wrote: Use INDIRECT() function Try the below which will help ... In Book1, Sheet1, cell A1 type: "This is a test" (without the quotation marks). In Book2, Sheet1, cell A1 type: "Book1" (without the quotation marks). In Book2, Sheet1, cell A2 type: "Sheet1" (without the quotation marks). In Book2, Sheet1, cell A3 type: "A1" (without the quotation marks). Save both workbooks. In Book2, Sheet1, cell B1 type the following formula: =INDIRECT("'["&A1&".xls]"&A2&"'!"&A3) -- If this post helps click Yes --------------- Jacob Skaria "Kevin McCartney" wrote: Hi TWIMC, Usually when referencing into a different workbook, Excel constructs the formula like so: =VLOOKUP(B10;'C:\folder path\My Documents\[workbookname.xls]worksheetname'!$G$10:$H$20;2;FALSE) My question is, is there a way to have a VLOOKUP formula reference the table array parameter in the following manner? =VLOOKUP(B10;A2!$G$10:$H$20;2;FALSE) where A2 = 'C:\folder path\My Documents\[workbookname.xls]worksheetname' This would allow the end user to specify which workbook/worksheet the VLOOKUP function is to reference. TIA KM |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VLookUp - Does the VLookUp return the exact information? | Excel Worksheet Functions | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |