View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default If, Or and an And

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)


"NickHK" wrote in message
...
Darin,
How about:

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

NickHK

"Darin Kramer" wrote in message
...
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....



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!