Dynamic Vlookup with usage of indirect

后端 未结 2 1207
予麋鹿
予麋鹿 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 18:57

    I've finally found and this formula is working perfectly.

    VLOOKUP($B3;INDIRECT("'NH "&RIGHT(CELL("filename");3)&"'!$G$1:$ZZ$9999");MATCH("SHARE_OUTSTANDING";INDIRECT("'NH "&RIGHT(CELL("filename");3)&"'!$G$1:$ZZ$1");0))
    

    By the way the issue i've got is that the cell are changing when i'm using the formula in another tab. Is this possible to look the value i've obtained ?

    Something like a F9 ?

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题