Nested IF with >= and <= choices

C

Clark

Here is the formula I am trying to make work:
=IF(B14+B15<25,1,IF(B14+B15>=25<40,2,IF(B14+B15>=40<75,3,IF(B14+B15>=75,5))))

B14 and B15 values change, and I want to return a number if the value of
B14+B15 falls within those given parameters. As shown, it gives me a FALSE
value if the sum of B14+B15 is over 25.
 
J

John C

=IF(B14+B15<25,1,IF(B14+B15<40,2,IF(B14+B15<75,3,5)))
This formula now states if B14+B15 is less than 25, show 1, else
if B14+B15 is less than 40, show 2 (note: it has already resolved for values
under 25, so you don't need to check for that again). And so forth.
 
P

Pete_UK

As the first IF checks for <25, the formula will only evaluate the
second IF if the condition is not satisfied, i.e. B14+B15 must be
greater than or equal to 25, so you don't need to test for that
explicitly. Hence, your formula becomes:

=IF(B14+B15<25,1,IF(B14+B15<40,2,IF(B14+B15<75,3,5))­)

Hope this helps.

Pete
 

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