#NAME? in VLOOKUP

HookEm

Board Regular
Joined
Jun 26, 2002
Messages
85
My Excel 97 was just upgraded to Excel 2000 - am now having problems with VLOOKUP. Always returns #NAME? Have created basic simple tables and tested and it still does not work. I went to Tools, Options, Calculations and made sure Accept Labels in Formulas is checked. What else can I be missing?

HookEm
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
that's usually the error when it cannot find your array, or range specified in your formula. were you using named ranges? and are those names still in place?
 
Upvote 0
Yes, they are there. I started off with my label'd range in another worksheet adjacent to the one I was working in. When nothing worked, I moved the range to the same sheet (far off to the right) and still got the error. I then created a simple table of 2 columns, 4 rows, named it Test and populated column a with a,b,c d and column b with 1,2,3 and4. Right next to it I did =VLOOKUP(C1,Test,2,False) and got the same error. I've used VLOOKUP a bunch of times before so I'm fairly confident it's not me - could be but I don't think so. Any ideas?

HookEm
 
Upvote 0
What happens if you use it with cell references instead of a named range? Is VLOOKUP available if you select a blank cell and choose Insert|Function?
 
Upvote 0
Just tried it your way and it worked. That's really weird. Any idea whats going on?

HookEm
 
Upvote 0
Andrew,
Apologies! Here's what I did: Instead of using my range name I had created, I clicked on the cell, chose Insert, Formula and referenced the cell range instead of my range name. This is what you suggested and it worked perfectly.

Went back to my columns where I originally started having this problem before I started testing - clicked on one of the cells, chose Insert, Formula. It came up with the VLOOKUP paramaters filled except the Name field had a red NAME off to the right which tells me it did not like my range name. Tried again creating a new one and it still gave me the same error. Do you name a range differently in 2000 than in 97? All I did was select my data, then while still highlited I clicked in the Name Box and gave it a name just like I always have before. Absolutely cannot make it work, though.

Stumped.

HookEm
 
Upvote 0
Make sure you press Enter after typing the name in the Name box. If you just click away from it nothing happens. It's a pain. :)
 
Upvote 0
Andrew,
You are right but I assume it accepted it because I can click in the range anywhere and the range name shows up in the name box.

Weird.

HookEm
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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