Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If or statement

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I have a bonus file that i am trying to work through. If AHT is Greater than 12.5 overall bonus should be zero, if quality is less than 90% than the overall bonus should be zero. I am using the following formula:

=IF(OR(W10<AI7,V10>AI8),"no bonus",(Y10+Z10)*AA10)

problem is that it is only "zeroing" out the cell if V10 is greater than 12.5. If W10 is less than 90% and V10 is not greater than 12.5 it is not "zeroing" out the total bonus. Is my formula wrong?

Hope this made sense.

Paul
 
Not so much. But I can imagine several things that might be wrong.
 


Please post ALL the values that are in the referenced cells:
[tt]
V10
W10
AI7
AI8
[tt]

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I'd almost bet that you're comparing a cell that is a percentage (i.e. 90% displayed, but the underlying value is 0.9) with a cell that is not a percentage (i.e. value is displayed as "90" and really is 90).
 
You could also try using the AND function. It looks like you have 2 criteria that need to be met in order for the bonus to take effect.

Try this:

Code:
=IF([b]AND[/b](W10<AI7,V10>AI8),"no bonus",(Y10+Z10)*AA10)


Malagar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top