IF(AND(etc., etc. ... problem

N

Nicole Seibert

Hello fellow helpers,
I have created the following equation:

=IF(AND(N10="Large",O10<500),"Incorrectly
Categorized",IF(AND(N10="Medium",O10>500,O10<80),"Incorrectly
Categorized",IF(AND(N10="Small",O10>80),"Incorrectly Categorized")))

And it works, however inelegantly, for the first set of conditions. For the
second and third set it just gives a value of false.

I have tried scrunching up the conditions, and only having one "if true"
statement at the end, but this syntax didn't work either.

Please send help soon.
 
B

Bernie Deitrick

Nicole,

=IF(AND(N10="Large",O10<500),"Incorrectly
Categorized",IF(AND(N10="Medium",OR(O10>500,O10<80)),"Incorrectly
Categorized",IF(AND(N10="Small",O10>80),"Incorrectly Categorized","OK")))

HTH,
Bernie
MS Excel MVP
 
M

Muhammed Rafeek M

Hi
Use this way:
=IF(AND(N10="Large",O10>500),"Incorrectly
Categorized",IF(AND(N10="Medium",O10>80,O10<=500),"Incorrectly
Categorized",IF(AND(N10="Small",O10>=80),"Incorrectly Categorized")))
 

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

Top