1

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.

4

2 回答 2

3

不确定它是否符合您的要求,但语法没问题:

=VLOOKUP($F492,INDIRECT("'[Budget estimate Mar 2016 v2.xlsm]"&VLOOKUP($I492,Sheet2!$C$3:$D$73,2,0)&"'!$B$23:$T$116"),8,0)
于 2015-03-25T18:24:17.507 回答
1

我认为您可能需要将该 CONCATENATE 函数及其内容放入 INDIRECT 函数中。

于 2015-03-25T17:43:35.570 回答