Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
using text from cell in lookup formula
I have created a master sheet using a vlookup to get data from another excel
file but everytime I have to change the formulas to correct the file name to the corrosponding file. example: "=VLOOKUP($A2,'[3069.xls]resource plan'!$A$2:$BI$36,10,FALSE)" I am trying to use text in cell a1 as a variable for file name ("3069.xls") so I only change it once. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
using text from cell in lookup formula
In your VLOOKUP formula replace '[3069.xls]resource plan'!$A$2:$BI$36
with =INDIRECT("'[" & A1 & ".xls]resource plan'!$A$2:$BI$36") assuming A1 has 3069 Basically construct a string which results in '[3069.xls]resource plan'!$A$2:$BI$36 and use INDIRECT() around it... "djames2007" wrote: I have created a master sheet using a vlookup to get data from another excel file but everytime I have to change the formulas to correct the file name to the corrosponding file. example: "=VLOOKUP($A2,'[3069.xls]resource plan'!$A$2:$BI$36,10,FALSE)" I am trying to use text in cell a1 as a variable for file name ("3069.xls") so I only change it once. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
using text from cell in lookup formula
thank you it works with the following
=VLOOKUP($A2,INDIRECT("'[" & A1 & ".xls]resource plan'!$A$2:$BI$36"),10,FALSE) "Sheeloo" wrote: In your VLOOKUP formula replace '[3069.xls]resource plan'!$A$2:$BI$36 with =INDIRECT("'[" & A1 & ".xls]resource plan'!$A$2:$BI$36") assuming A1 has 3069 Basically construct a string which results in '[3069.xls]resource plan'!$A$2:$BI$36 and use INDIRECT() around it... "djames2007" wrote: I have created a master sheet using a vlookup to get data from another excel file but everytime I have to change the formulas to correct the file name to the corrosponding file. example: "=VLOOKUP($A2,'[3069.xls]resource plan'!$A$2:$BI$36,10,FALSE)" I am trying to use text in cell a1 as a variable for file name ("3069.xls") so I only change it once. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
use cell text in lookup function | Excel Worksheet Functions | |||
Lookup text then copy over to new cell | Excel Worksheet Functions | |||
Referencing cell text in a lookup | Excel Discussion (Misc queries) | |||
Lookup certain text within a cell, PLEASE HELP! | Excel Worksheet Functions | |||
lookup a text cell and return text | Excel Discussion (Misc queries) |