Named Range in a Hlookup using Vlookup

LouisT

Board Regular
Joined
Apr 5, 2010
Messages
73
Office Version
  1. 365
Platform
  1. Windows
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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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:
Upvote 0
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:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
Members
453,021
Latest member
Justyna P

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top