I have (two) equal name named ranges, Sheet1!Tab1 and Sheet2!Tab1. In cell A1 I have a variable sheet name. I am trying to lookup with some value (A3) in Tab1 of sheet indicated by A1 value. My formula is:
VLOOKUP (A3, INDIRECT(A1 & “!Tab1”),4,0)
where A3 is my lookup value, but I am getting a #REF! error.
If I build my formula referencing directly the named range, it works nice, example VLOOKUP(A3,Sheet1!Tab1,4,0), which says to me that my problem is with INDIRECT function. All the examples I have looked at Mr. Excel board indicate that this must work, but I have not had success.
I have also tried VLOOKUP (A3, INDIRECT(“’” & A1 & “’!Tab1”),4,0) but not luck.
Thanks for your suggestions.
VLOOKUP (A3, INDIRECT(A1 & “!Tab1”),4,0)
where A3 is my lookup value, but I am getting a #REF! error.
If I build my formula referencing directly the named range, it works nice, example VLOOKUP(A3,Sheet1!Tab1,4,0), which says to me that my problem is with INDIRECT function. All the examples I have looked at Mr. Excel board indicate that this must work, but I have not had success.
I have also tried VLOOKUP (A3, INDIRECT(“’” & A1 & “’!Tab1”),4,0) but not luck.
Thanks for your suggestions.