Logic Question

S

Str8goofE

If a string of text in cell A1 is exactly the same as a string of text in a
RANGE of cells in column B, then cell C1 equals 1, else = 0.

So for example...

Column A Column B Column C
big bird dork man 0
kid rock joker 1
kid rock


Any help?? :)

Thanks!
 
J

J.E. McGimpsey

One way:

C1: =--(COUNTIF(B:B,A1)>0)


the two unary minus operators turn the Boolean True/False into 1/0,
respectively.
 

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