True or false

W

WTG

How do I have a cell return a yes/no true/false answer.




I want "sheet-1 b1" to see if the same value of "sheet-1 a1" is
anywhere in "sheet-2 a1:a10000" and if so return a value of yes or
no.

Thanks

Wally
 
D

Dave Peterson

=isnumber(match(a1,sheet2!$a$1:$a$10000,0))

will return true if there's a match. And false if there's no match.

You could use:
=if(isnumber(match(a1,sheet2!$a$1:$a$10000,0)),"Yes","No")
if you cared about yes/no.
 

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