Quizzes & Puzzles14 mins ago
Excel IF and OR formula
5 Answers
I have a cell. This cell contains the value 0. Another cell contains the number 10. Another the number 20.
I want to writ e formula that says:
If the number is 15 and over, return the word ABOVE, if it is below 15 then return BELOW, if the value is 0 then return N/A.
I can work out the IF formula for over and below 15, but HOW do I work out the N/A if it is zero?
I want to writ e formula that says:
If the number is 15 and over, return the word ABOVE, if it is below 15 then return BELOW, if the value is 0 then return N/A.
I can work out the IF formula for over and below 15, but HOW do I work out the N/A if it is zero?
Answers
Best Answer
No best answer has yet been selected by funkylad20. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Here's another approach for you to try ...If you place the following formula in cell B1 and enter your values in A1 you should get the following results:
No value = "Enter a value"
A number less than zero = "BELOW"
Zero = "N/A"
A number greater than zero = "ABOVE"
=IF(A1="","Enter a value",IF(A1<0,"BELOW",IF(A1=0,"N/A",IF(A1>0,
"ABOVE","error"))))
No value = "Enter a value"
A number less than zero = "BELOW"
Zero = "N/A"
A number greater than zero = "ABOVE"
=IF(A1="","Enter a value",IF(A1<0,"BELOW",IF(A1=0,"N/A",IF(A1>0,
"ABOVE","error"))))
Here's another approach using nested IF statements (I forget how many nests you can have but its quite a lot). If you place the following formula in cell B1 and your values in A1 you should get the following results:
No value = "Enter a value"
Less than zero = "BELOW"
Zero = "N/A"
Greater than zero but less than or equal to 100.0 = "ABOVE"
Greater than 100 = "Error" (eg 100.00001)
=IF(A1="","Enter a value",IF(A1<0,"BELOW",IF(A1=0,"N/A",IF(A1>10
0,"error",
"ABOVE"))))
No value = "Enter a value"
Less than zero = "BELOW"
Zero = "N/A"
Greater than zero but less than or equal to 100.0 = "ABOVE"
Greater than 100 = "Error" (eg 100.00001)
=IF(A1="","Enter a value",IF(A1<0,"BELOW",IF(A1=0,"N/A",IF(A1>10
0,"error",
"ABOVE"))))