How to determine whether a list contains a specific value?

G

Guest

Does anyone have any suggestions on how to determine whether a list contains
a specific value? such as
{2, 6, 8, 16, 11, 9, 16} under column A
In cell B1, there is a value 3, if 3 is contained inside the list under
column A, then return 1, else 0.
Does anyone have any suggestions?
Thank in advance for any suggestions?
Eric
 
P

PCLIVE

I forgot to mention...in my example I used the value 4 instead of 3. See
toppers formula which references the value in B1.
=IF(COUNTIF(A:A,B1)>0,1,0)
 

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