Excel Using VLOOKUP and INDIRECT
Solved
Latrix
Posted messages
5
Status
Member
-
Latrix Posted messages 5 Status Member -
Latrix Posted messages 5 Status Member -
Hello,
I want to perform a VLOOKUP on a range of cells from another non-generic sheet. For that, I'm using the following formula:
=VLOOKUP(I6, INDIRECT("'"&F6& "'!A5:G100"), 7)
- I6 contains the value to look for
- F6 contains the name of the sheet where the search should be made
- A5:G100 is the range where I want to search for the value in F6
- 7 is the column I want to retrieve
My problem is that this formula consistently returns the 7th column of the last row in the range.
(For example, if I replace G100 with G50, I retrieve the 7th column of row 50 even though the value I'm looking for is in G25).
Thank you in advance for your help.
I want to perform a VLOOKUP on a range of cells from another non-generic sheet. For that, I'm using the following formula:
=VLOOKUP(I6, INDIRECT("'"&F6& "'!A5:G100"), 7)
- I6 contains the value to look for
- F6 contains the name of the sheet where the search should be made
- A5:G100 is the range where I want to search for the value in F6
- 7 is the column I want to retrieve
My problem is that this formula consistently returns the 7th column of the last row in the range.
(For example, if I replace G100 with G50, I retrieve the 7th column of row 50 even though the value I'm looking for is in G25).
Thank you in advance for your help.