# Named Range in a Hlookup using Vlookup

#### LouisT

##### Board Regular
Hi Everyone, I'm trying to pull a Named Range using Vlookup into a Hlookup to return a text value. I've tested the individual parts and they work fine but when i put them together I get "#VALUE" as a result.

The formula is: =HLOOKUP(E\$1,(VLOOKUP(\$B2,'Emp Lists'!\$B:\$F,5,FALSE)),(\$D2+1),FALSE) and the bolded text is the part of the formula that is returning the named range when i just use that it returns the proper value however it fails when it is nested into the HLookup.

For information: E1 = Date, B2 - Employee number value, D2 - numerical lookup for row to use

Hope this helps and someone knows the solution.

Thanks
Louis

### Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
VLOOKUP returns a value, perhaps text.
If the result of the VLOOKUP is text that reflects a range, e.g. A1:Z1 you need to put it in an INDIRECT()

Last edited:
VLOOKUP returns a value, perhaps text.
If the result of the VLOOKUP is text that reflects a range, e.g. A1:Z1 you need to put it in an INDIRECT()

Thanks Special-K99, do you mean like this: =HLOOKUP(E\$1,INDIRECT((VLOOKUP(\$B2,'Emp Lists'!\$B:\$F,5,FALSE))),(\$D2+1),FALSE)

Update: Nevermind, that worked PERFECTLY! Thank you very much!

Last edited:

Replies
3
Views
264
Replies
2
Views
217
Replies
2
Views
353
Replies
2
Views
164
Replies
6
Views
500

1,206,921
Messages
6,075,588
Members
446,147
Latest member
homedecortips

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back