A G
asked on
Dynamic Vlookup Function Formula Help
I have the following formula which is not working.
So I am trying to assign the vlookup array location dynamically. I think I am having a problem with the worksheet name (PNL) in this case.
=VLOOKUP(B11,"'PNL'!A"&VLO OKUP(B1,$A $31:$C$45, 2,FALSE)& ":N"&VLOOKUP(B1,$A$31:$C$4 5,3,FALSE) ,4,FALSE)
When I evaluate the formula, It shows Vlookup("XLF","'PNL'!A14:N 38",4,Fals e) and then it gives #Value!
The vlookup function that I create manually work fine (=VLOOKUP(B11,'PNL'!$A$14: $N$38,4,FA LSE)), so the data is there. But my dynamic formula doesn't work. I think the problem is with the name of the spreadsheet. Or maybe something else?
So I am trying to assign the vlookup array location dynamically. I think I am having a problem with the worksheet name (PNL) in this case.
=VLOOKUP(B11,"'PNL'!A"&VLO
When I evaluate the formula, It shows Vlookup("XLF","'PNL'!A14:N
The vlookup function that I create manually work fine (=VLOOKUP(B11,'PNL'!$A$14:
ASKER
Hi Michael , when I put your version it brings the following when I do the Evaluate formula
Vlookup("XLF","'PNL!$A14:N 38",4,FALS E)
But is still results #VALUE!
Vlookup("XLF","'PNL!$A14:N
But is still results #VALUE!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent
Open in new window
I can't test it very well, but it works for me like that.