Vlookup possible errors

macro_user

Board Regular
Joined
Mar 9, 2009
Messages
101
hi,

i am trying to use VLOOKUP to populate a cell's value. I noticed that i get different types of error fields populated when a value is wrong/not found. Can someone explain to me the reasons why we get these different types of error fields:

#N/A
#NAME?
#REF?
=VLOOKUP(B2,F:G,2,FALSE)

in the 4th case, Im sure that a value is present in the column where i am looking in but the formula doesn't seem to have gotten executed. It just displays the formula the same way.

Appreciate the help.

Thanks!
 
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hey,

#N/A means that the value you are trying to find in your table has not been found.
#NAME usually means that the function has been typed in incorrectly (VLOKUP for example)
#REF means you are trying to lookup from a cell that doesn't exist, it could be that you moved the function from one cell to another and the auto calc thing that moves the cells in the function has moved to a row above row 1 (which is not possible).

As for number 4. Make sure the cell is formatted correctly (number/date etc) and then once formatted click on it, press F2 and then enter.
 
Upvote 0
#N/A is probably the more common error with VLOOKUP, it just means the value you're looking for does not exist.

#NAME means you've typed in an incorrect name

#REF means the range you are referencing no longer exists

The last error probably occurs if your cells are formatted as text, I get this when I import CSV files.

HTH


Dave
 
Upvote 0
You'll get #N/A when a value isn't found.
You'll get #NAME? if you've misspelled something in the formula or the source area.
You'll get #REF! if you try to reference something that doesn't exist, for example choosing column 3 of a table when the table only has 2 columns.
And you'll get the formula instead of the result when the cell is formatted as text ... reformat as General ( or number ) and then reenter the formula.
 
Upvote 0

Forum statistics

Threads
1,214,666
Messages
6,120,806
Members
448,990
Latest member
rohitsomani

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