IF Function question.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to make an IF function's logical test be whether a number is
less than or equal a certain number, but ALSO greater than a certain number?

E.g. =IF(p3<=q3>t3,"value if true","value if false")
 
Awesome, thanks! Would I do the same for a nested IF function?

=IF(AND(P3<=Q3,P3>T3),"value if true",IF(AND(P3<=R3,P3>Q3,
"value if true",etc.

You could; but in Excel 2003 and earlier, there is a limit of 7 nested
function calls (8, if you count the outer-most function).

If "value if true" is the same value for both conditions, you could do
something like:

=if(or(and(P3<=Q3,P3>T3), and(P3<=R3,P3>Q3)), "value if true", "value
if false")
 

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

Back
Top