ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Embedding functions in Vlookup? (https://www.excelbanter.com/excel-worksheet-functions/90646-embedding-functions-vlookup.html)

AsstInterests

Embedding functions in Vlookup?
 
On one tab called CheckSheet I have the following:
Check Range
123 XYZ
456 CDR

On another tab I have ranges named XYZ and CDR. I need to be able to create
a vlookup inside a vlookup. Here is what I am thinking should work but
doesn't:

+vlookup(z1,+vlookup(a1,'CheckSheet'!A1:B3,2),2)

Basically I need a vlookup to use the "range" name that resulted from
another vlookup. I am sure there is something simple I am missing but it is
driving me crazy. Any help is greatly appreciated. The above results in
#value.


Toppers

Embedding functions in Vlookup?
 
try:

=VLOOKUP(Z1,INDIRECT(VLOOKUP(A1,'CheckSheet'!A2:B3 ,2,FALSE)),2,FALSE))

"AsstInterests" wrote:

On one tab called CheckSheet I have the following:
Check Range
123 XYZ
456 CDR

On another tab I have ranges named XYZ and CDR. I need to be able to create
a vlookup inside a vlookup. Here is what I am thinking should work but
doesn't:

+vlookup(z1,+vlookup(a1,'CheckSheet'!A1:B3,2),2)

Basically I need a vlookup to use the "range" name that resulted from
another vlookup. I am sure there is something simple I am missing but it is
driving me crazy. Any help is greatly appreciated. The above results in
#value.


Domenic

Embedding functions in Vlookup?
 
Try...

=VLOOKUP(Z1,INDIRECT(VLOOKUP(A1,'CheckSheet'!A1:B3 ,2)),2)

Hope this helps!

In article ,
AsstInterests wrote:

On one tab called CheckSheet I have the following:
Check Range
123 XYZ
456 CDR

On another tab I have ranges named XYZ and CDR. I need to be able to create
a vlookup inside a vlookup. Here is what I am thinking should work but
doesn't:

+vlookup(z1,+vlookup(a1,'CheckSheet'!A1:B3,2),2)

Basically I need a vlookup to use the "range" name that resulted from
another vlookup. I am sure there is something simple I am missing but it is
driving me crazy. Any help is greatly appreciated. The above results in
#value.



All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com