AND function

L

london_lad

Hi people

I'm troubled with the AND function. This is what I have:

A1 reads AWAY
A2 reads EESL

In A3 I would like the number 1 to be shown if AWAY and EESL ar
present. If not, an 0. I've tried every which way to work this out o
my own, but with no success.

Any suggestions?

Nei
 
B

Bernard V Liengme

Hi London_lad
Frank's answer is just fine but this also works =(A1="away")*(A2="eesl")
Bernard
(once-upon-a-time-a-London-lad)
 
W

www.canhelpyou.com

Another way to look at it is:

=IF((A1="AWAY")*(A2="EESL"),1,0)

Hint: When you're dealing with logic like "IF"
statements, the * is a logical "and" and the + is a
logical "or".

I've found it actually easier to use this than the AND()
and OR() but to each his own.


Kent
 

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