Function not working

L

Loren

I'm trying to get a cell to work 3 different functions depending on it's value.
#1 If cell value is less than 10 the cell displays "GOOD"
#2 If cell value is more than 10 but less than 20 cell displays "FAIR"
#3 If cell value is more than 20 cell displays "POOR"
This is the function I have typed in now:
=IF(BF32="","",IF(BF32<10,"GOOD",IF(BF32>10<20,"FAIR","POOR")))
What did I do wrong?
 
J

Jacob Skaria

Try the below. You cannot validate like BF32>10<20

=IF(BF32="","",IF(BF32<10,"GOOD",IF(BF32<20,"FAIR","POOR")))

If this post helps click Yes
 
R

Rick Rothstein

This comparison is meaningless to Excel... BF32>10<20. Try it this way...

=IF(BF32="","",IF(BF32<10,"GOOD",IF(BF32<20,"FAIR","POOR")))

Note... this works because if BF32 is less than 10, the first IF handles it,
so you don't need to test to make sure BF32 is greater than or equal to
10... it has to be if it made it past the first IF statement, so all you
need to test in the second IF statement is that BF32 is less than 20.
 
M

Mike H

Hi,

An alternative to IF

=LOOKUP(BF32,{1,10,20},{"Good","Fair","Poor"})

A may have the thresholds wrong because your question is unclear as to which
category 10 falls into

Mike
 

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

Similar Threads

Still won't work 2
3 Different Values 1
IF function not working 4
IF Function not working 7
Conditional Formatting by percent range 2
Average problem 1
More than 3 Conditions 2
Simple Excel Question 2

Top