If, Or and an And

  • Thread starter Thread starter Darin Kramer
  • Start date Start date
D

Darin Kramer

Me again.... :)

Should be simple, but for some reason I can get it to work...

Formulae in cell a5, needs to say...
If cell a1 = "Bird", then display cell b1
If cell a1 = "Cat", then display cell b2
If cell a1 - "Seed" or "Dish" then display "N/A"

I thought it was a nested if with an and and a or, but mine does not
seem to work...

Thanks guys....
 
=if(a1="bird",b1,if(a1="cat",b2,if(or(a1="Seed",a1="Dish"),"N/A","none of
them")))
....should work
Rob
 
Darin,

=IF(A1="Bird",B1,IF(A1="Cat",B2,IF(OR(A1="Seed",A1="Dish"),"N/A")))

Does this work?

Pete
 
Darin,
How about:

=IF(A1="Bird",B1,IF(A1="Cat",B2,IF(OR(A1="Seed",A1="Dish"),"N/A","All
Wrong")))

NickHK
 
You might want to use the NA() function rather than text "N/A" as well, as
you can error check that using IF(ISNA...

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top