

fan4bronco Nov 10, 2012 10:23 AM
in response to BadunitI have a similar question involving an even more complex if/then statement. Depending upon the price entered in Column A, I want Column B to display a percentage of the value of A. But the percentage isn't straightforward..it depends on the value of Column A. In laymen's terms it would look like this:
IF (Column A) is LESS than $50, THEN 15%(A)
IF (A) is between 50.01100, THEN 10%(A)
IF (A) is GREATER than 100.01, THEN 5%(A)
Is this possible?

Jeff Shenk Nov 10, 2012 12:42 PM
in response to fan4broncoTry this:
=IF(A<=50,0.15*A,IF(A<=100,0.1*A,0.05*A))

Barry Nov 10, 2012 10:56 PM
in response to fan4broncoYou can also attack it from the opposite direction to that suggested by Jeff:
IF(A>100,0.05*A,IF(A>50,0.1*A,0.15*A))
Regards,
Barry

fan4bronco Nov 11, 2012 9:14 AM
in response to Jeff ShenkThis worked like a charm, and I was even able to add a few more IF/THEN statements to the formula. Thanks so much for helping a Numbers novice.

dvo247 Apr 15, 2014 7:13 PM
in response to BarryHey if im trying to use multiple ranges for example if projections are less then 80,000 then 2, if greater then 80,000 then 3, if greater then 84,000 then 4. it works from below 80 to above 80 but once i go above 84 it keeps displaying 3. Any thoughts, thats my formula below?
IF(C1<80000,2,IF(C1≥80000,3,IF(C1>84000,4)

Barry Apr 15, 2014 10:31 PM
in response to dvo247Hi dvo,
The formula is working correctly. Any value that is greater than 84000 will already have been tested and found greater than 80000. Since C1≥80000 it TRUE, the formula will return 3, and will not test C1>84000.
Rearrange your formula:
Existing: IF(C1<80000,2,IF(C1≥80000,3,IF(C1>84000,4)
Revised: IF(C1>84000,4,IF(C1>=80000,3,2)
Note that testing for C1<80000 is redundant. If C1 is not greater than 84000 and is not equal to or greater than 80000, then it must be less than 80000.
Regards,
Barry

Barry Apr 15, 2014 10:36 PM
in response to fan4broncoHi fan,
"I was even able to add a few more IF/THEN statements to the formula."
Once you get beyond three nested IFs, you should be looking at a LOOKUP table and one of the LOOKUP functions, rather than a string of IFs.
Regards,
Barry
