Is it possible to insert a VLOOKUP inside a VLOOKUP formula, to search for a specific table_array?
This is the formula I want to use:
=VLOOKUP($F492,CONCATENATE("'[Budget estimate Mar 2016 v2.xlsm]",VLOOKUP($I492,Sheet2!$C$3:$D$73,2,0),"'!$B$23:$T$116"),8,0)
The reason I used CONCATENATE is so table_array does not change when I drag the formula down, but worksheet name changes.
The problem is VLOOKUP returns me a value error. Should I insert some another function to change it to text?
What I want to have inside the VLOOKUP is table_array. Normally you have:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]).
My table_array changes depending on specific value in column "I". The way it changes, it just changes the name of the worksheet, so if I have a table array:
'[Name1'!B23:T116
for value "example1"
,
I want it to change to:
'[Name2'!B23:T116
for value "example2"
.
That's why I used CONCATENATE, so the VLOOKUP will look for a specific Name"x" and CONCATENATE will join B23:T116.