Dynamic Vlookup with usage of indirect

后端 未结 2 1296
予麋鹿
予麋鹿 2021-01-26 18:43

I\'m having trouble with the usage of Indirect function.

Here\'s what i\'m looking for, I\'m trying to create a dynamic vlookup based on the current tab.

=

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 19:14

    You are trying to concatenate some text with the results returned from a formula, but you are sticking the formulas in quotes, turning them into text. Furthermore, you are not keeping very good track of your text. There are quotes all over the place. Take this bit by bit in a seperate cell if need, slowly growing your formula from the inside out so you can insure everything is as expected. Right now it's a mess.

    INDIRECT("'" "NH " & "RIGHT(CELL("'" & "filename" & "'" & ");3)" & "!" & "E1:Z188")
    

    Should be:

     INDIRECT("'NH " & RIGHT(CELL("filename");3) & "'!E1:Z188")
    

    No need for all the complication.

提交回复
热议问题