Vlookup problem

Galena1

Active Member
Joined
Jun 10, 2010
Messages
305
Simple vlookup is returning '#NAME?'

=IF(ISNA(VLOOKUP(F6,SoWs!A:A,1,FALSE)),"Yes","No")

What gives?...

Thanks!:eeek:
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Is SoWs a worksheet in your workbook?

Also, try using a MATCH instead of VLOOKUP for this. It will be much faster:

=IF(ISNA(MATCH(F6,SoWs!A:A,0)),"Yes","No")
 
Upvote 0
Simple vlookup is returning '#NAME?'

=IF(ISNA(VLOOKUP(F6,SoWs!A:A,1,FALSE)),"Yes","No")

What gives?...

Thanks!:eeek:
I don't see anything as to why that would return a '#NAME?' error, unless somehow a reference is missing?

Maybe go into vba (Alt+F11) and go to tools-->reference and make sure nothing is checked that says missing?

Does this work?

=IF(ISNA(MATCH(F6,SoWs!A:A,0)),"Yes","No")

Hope that helps.
 
Upvote 0
Yeah, that worked using the 'Match' function in the formula.
Although I still don't understand why the original IF Vookup didn't work. I could've swore it has in the past. Oh, well :cool:

Thanks everyone for the help!
 
Upvote 0
Could the error be coming from the VLOOKUP? I am thinking that since your table array in the VLOOKUP is one column wide and the column index num you have as "1" is attempting to return the same. Doesn't a Vlookup require a table array and column index num of at least 2 wide?
 
Upvote 0
Could the error be coming from the VLOOKUP? I am thinking that since your table array in the VLOOKUP is one column wide and the column index num you have as "1" is attempting to return the same. Doesn't a Vlookup require a table array and column index num of at least 2 wide?
No you can set it up the way he had it and I have seen plenty of people do it that way to test the same way as you would with the match function. I'm thinking it might have been the false that was the issue, does this not work either?

=IF(ISNA(VLOOKUP(F6,SoWs!A:A,1,0)),"Yes","No")

or this?

=IF(ISNA(MATCH(F6,SoWs!A:A,FALSE)),"Yes","No")

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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