I'm trying to do a VLOOKUP formula where the lookup value is also the tab number (number of tab located in cell Z2).
Cell Z2 has this formula in it =MID(@CELL("Filename",I7),SEARCH("]",@CELL("Filename",I7),1)+1,32)
The Z2 formula results in the cell being populated with a number starting with 1 and increasing by one with every added worksheet. (worksheet added with macro to create any size workbook copying a template as many times as necessary)
How can I get the vlookup to work as it's based on this cell value? If I enter a static number in cell Z2 the formula works. It doesn't work when the lookup value has the above formula in it.
I'm open to any other method to achieve a vlookup type result if it would work.
Thanks for reading and any help you may be able to offer.
Cell Z2 has this formula in it =MID(@CELL("Filename",I7),SEARCH("]",@CELL("Filename",I7),1)+1,32)
The Z2 formula results in the cell being populated with a number starting with 1 and increasing by one with every added worksheet. (worksheet added with macro to create any size workbook copying a template as many times as necessary)
How can I get the vlookup to work as it's based on this cell value? If I enter a static number in cell Z2 the formula works. It doesn't work when the lookup value has the above formula in it.
I'm open to any other method to achieve a vlookup type result if it would work.
Thanks for reading and any help you may be able to offer.