Hlookup() Failed with name range

majidsiddique

Board Regular
Joined
Oct 22, 2018
Messages
164
Hi all,
i using a formula Hlookup(C5,VL,A7,FALSE) is not working. can anybody tell me why? i use this sheet2 d8 cell. VL is the range of sheet1 d4 to s65. i want to change date c5 in sheet2 data pick AUTO from sheet1 as mention in sheet2 C8.
Sheet1,

717356a822cac06881f611b2e33f7155-full.png



sheet2,

5e14675ab5dc4ccb6e3144fa5969d9cd-full.png
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Re: Hlooup() Failed with name range

If I understand your question correctly, you're using a formula on Sheet2 to attempt a HLOOKUP on a range in Sheet1. Is that correct?

If the VL range is defined as a "Worksheet" named range, then you'd have to qualify it in your formula by referring to it as Sheet1!VL. Alternatively, if you define it at the Workbook level, that qualification will not be required. Since you're getting an error (and assuming no other error), then I deduce that you have the name defined at the Worksheet level, so you'll need to qualify it in the formula.

Try HLOOKUP(C5,Sheet1!VL,A7,FALSE)
 
Upvote 0
Re: Hlooup() Failed with name range

Hi BlueHornet,
i got it why this formula is not working. actually i did not mention ref no A7. this was blank i am trying to get result without enter the no. when you put number then it will work OK, thank to you to consider and reply.
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,779
Messages
6,126,846
Members
449,343
Latest member
DEWS2031

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