View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default IF statement with AND or OR?

Oops,

try this instead

=IF(A1+A2=0,"Pass",IF(A10,"Dropped",IF(A20,"Fail ","Unspecified")))

Same comment about unspecified bit for a different reason

A1=-1
A2=0


Mike

"Colin" wrote:

Hi,

I have a range of cells a1:a3.
In a1 I will have a number between 0 - 5.
In a2 I will have a number between 0 - 5.
In a3 I want a function that returns "Fail" if a2 is above 0, and "Dropped"
if a1 is above 0 irrelevant to what number is in a2. ie: a number above 0 in
a1 will always return "Dropped" no matter what number is a2.
If a1 and a2 are both at 0 then "Pass" will be returned.

My starting point is =IF(A20,"Fail","Pass").

Please can you help?
--
Thank you,

Colin.