Syntax

  • Thread starter Thread starter gary
  • Start date Start date
G

gary

What is the correct syntax of the Excel formula for this
expression:

If A1="DOG"
or
if B1="CAT"
or
if C1="POSSUM"
or
if D1="FERRET"
then "YES"
else "NO".
 
=IF(OR(A1="Cat",B1="Dog",C1="Possum",D1="Ferret"),"Yes","No")

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)
 
Peo,

Thanks !

(I was trying to use #OR# instead but I couldn't get the
syntax right).

Gary
 
GARY said:
(I was trying to use #OR# instead but I couldn't get the
syntax right).
....

That's the 123/Quattro Pro *operator*. Excel uses functions. So AND(..)
rather than #AND# and NOT(..) rather than #NOT#.
 

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

Similar Threads

Lookup with multiple returns 12
Help for - IF Formula 2
Format of cell 1
Format of cell 1
Formula for If "" AND "" are true... 3
Multiple if condition formula required 4
[HELP]CLOCK TIMER USING ECXEL 0
IF 4

Back
Top