Lookup value in table without returning #N/A

E

Eric_NY

In Excel 2003, I have a simple, one-column table with a list of names in it.
I'd like to check to see whether that a particular name is present in the
table.

The only way that I know how to do this is to use VLOOKUP and check for a
#NA error value. Something like: ISNA(VLOOKUP(A1, C1:10, 1, FALSE)).

This is workable but seems a sort of roundabout way to arrive at the result.
Is there any function which provides a more direct way to check whether a
table contains a particular value?

Thanks.
 
E

Eric_NY

Good idea! Thanks.

Gary Brown said:
CountIf should do the same thing
--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown
 
D

Dave Peterson

I'd use:

=isnumber(match(a1,c1:c10,0))



Eric_NY said:
In Excel 2003, I have a simple, one-column table with a list of names in it.
I'd like to check to see whether that a particular name is present in the
table.

The only way that I know how to do this is to use VLOOKUP and check for a
#NA error value. Something like: ISNA(VLOOKUP(A1, C1:10, 1, FALSE)).

This is workable but seems a sort of roundabout way to arrive at the result.
Is there any function which provides a more direct way to check whether a
table contains a particular value?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top