I want to have a cell that contains a file path ('C:\Documents\Costs\[Costing 2017.xls]Sheet2'!A:D
) that will be used in VLOOKUP
functions in different worksheets throughout the rest of the workbook.
Currently, I have the file path in cell A2 of the sheet named 'Master Sheet' Thus the reference to that cell is.
='Master Sheet'!$A$2
In the following sheets (sheets 2 to 8), I use VLOOKUP
to reference certain product numbers in the Costing 2017.xls
workbook, returning the price. I can use VLOOKUP
this way
=VLOOKUP(A2,'C:\Documents\Costs\[Costing 2017.xls]Sheet2'!A:D,4,FALSE)
But I want to be able to change the file path without having to go and copy the formula through potentially more than 8 sheets.
I've tried using INDIRECT()
, but I'm not getting the result I want.