Mar 20, 2009
There are 4 tabs titled: xy,xx,yx and ss. On tab ss; in cell A1, there's a formula that gives the sheet name of one of the remaining 3 tabs (so depending on a few conditions that are not important for this problem, its value is going to be xy, or xx, or yx.)
View 4 Replies
what I want to do is (say on cell A2), create a vlookup formula whose table array should go to one of the 3 tabs depending on the value of A1. So, if A1=xy , then, I want the table array to be ,xy!a1:b90, ..
However, I cant use an if clause (say: if(a1="xy",vlookup(..,xy!a1:b90,2,false),if(a1="xx",vlookup(..,xx!a1:b90,2..........) because I actually have 20 tabs and I dont want to go nuts with a bunch of nested expressions.