OK, I have a user that needs to check for multiple conditions based on the following:
Return value of "5" if value of cell 'n3' is < 80% of cell 'P3' OR cell 'N3" is less than 250
Return value of "4" if value of cell 'n3' is less than 90% or greater than or equal to 80% of cell 'P3' OR cell 'N3" is between 250 and 349
Return value of "3" if value of cell 'n3' is less than 100% or greater than or equal to 90% of cell 'P3' OR cell 'N3" is between 350 and 449
Return value of "2" if value of cell 'n3' is less than 110% or greater than or equal to 100% of cell 'P3'
Return value of "1" if value of cell 'n3' is less than 120% or greater than or equal to 110% of cell 'P3'
Return value of "0" if value of cell 'n3' is 120% or more of cell 'P3'
A co-worker came up with the following nested IF statement, and while it does not error out, the formula returns an incorrect value...
=IF(OR(OR(N3<250,N3=P3),N3<(0.8*P3)),5, IF(OR(OR(N3>=250,N3<=349), OR(N3>=(0.8*P3),N3<(0.9*P3))),4,IF(OR(OR(N3>=350,N3<=449),OR(N3>=(0.9*P3),N3<P3)),3,IF(OR(N3>=P3,N3<(1.1*P3)),2,IF(OR(N3>=(1.1*P3),N3<(1.2*P3)),1,IF(OR(N3>=(1.2*P3)),0,"E"))))))
Bookmarks