So, I've created a named combo box control in a MS Excel 2007 workbook containing file names that are stored on another worksheet (DriveFiles) in the same workbook. I've set the combo box cell link to D1 on my worksheet and set E1 =IF(D1="","","S:\Accounting\Financials\Linked Spreadsheets\[" & INDEX(DriveFiles!A:A,D1,0)) &"]" on my worksheet.
I want to use the value in E1 as part of a VLOOKUP function in various other cells like so:
=VLOOKUP(B9,"'" & E1 & "Cons by month'!$B$8:$O$199",$K$4,0) but am getting #VALUE! in the cell for this formula. K$4's formula is =VLOOKUP(D3,$L$4:$M$15,2,0).
The intent is to allow the user to select a file name from the dropdown and the data in the cells vary to display the data from the selected file.
This formula works when it looks like this:
=VLOOKUP(B8,'S:\Accounting\Financials\Linked Spreadsheets\[Consolidated 2011 Forecast 1+11.xlsx]Cons by month'!$B$8:$O$199,$K$4,0) - ie. the path is hardcoded into the formula
E1's value is = S:\Accounting\Financials\Linked Spreadsheets\[Consolidated 2011 Forecast 1+11.xlsx] but =VLOOKUP(B9,"'" & E1 & "Cons by month'!$B$8:$O$199",$K$4,0) doesn't work.
What I be missing to make this work?
Thanks in advance for any help.
I want to use the value in E1 as part of a VLOOKUP function in various other cells like so:
=VLOOKUP(B9,"'" & E1 & "Cons by month'!$B$8:$O$199",$K$4,0) but am getting #VALUE! in the cell for this formula. K$4's formula is =VLOOKUP(D3,$L$4:$M$15,2,0).
The intent is to allow the user to select a file name from the dropdown and the data in the cells vary to display the data from the selected file.
This formula works when it looks like this:
=VLOOKUP(B8,'S:\Accounting\Financials\Linked Spreadsheets\[Consolidated 2011 Forecast 1+11.xlsx]Cons by month'!$B$8:$O$199,$K$4,0) - ie. the path is hardcoded into the formula
E1's value is = S:\Accounting\Financials\Linked Spreadsheets\[Consolidated 2011 Forecast 1+11.xlsx] but =VLOOKUP(B9,"'" & E1 & "Cons by month'!$B$8:$O$199",$K$4,0) doesn't work.
What I be missing to make this work?
Thanks in advance for any help.