Hello everyone
So, i have a problem with a dynamic vlookup formula I want to make. The formula takes the first digit of a number and uses this to navigate to a specific sheet within the excel file. It then searches through a list to find the associated entry.
So, for example, if you have the number "10135) it takes the "1" from that number via "left(B2;1)".
It then makes the reference with the help of "indirect" and "concatenate", so "indirect(concatenate("Test";left(B2;1);"!A2:B21");TRUE)".
It then uses this in a vlookup formula, so "vlookup(B2;indirect(concatenate("Test";left(B2;1);"!A2:B21");TRUE);2;TRUE)".
So, the formula searches for "10135" on the sheet named "Test1" in the area A2:B21 and returns the value from the second row.
And the formula works. As long as everything is in the same file. But as soon as I try to split the formula and the data up into two separate files, the formula just throws a reference error at me.
Could someone help me with this?
Bookmarks