Results 1 to 4 of 4
Thread: Nested if formula (2003)

20070929, 01:20 #1
 Join Date
 Sep 2002
 Location
 Edmonton, Alberta
 Posts
 92
 Thanks
 0
 Thanked 0 Times in 0 Posts
Nested if formula (2003)
Below is a formula that I've tried and not even sure if it should be an if function. Would someone steer me in the right direction for: Anything under 78% = 0, 78%  80% = 40, 80%84% =50, 84%  88% = 60, 88%  92%= 70 and >98% = 80
This is the if statement I tried but it keeps coming up with 0. Thanks in advance. Robin
=IF(C13<0.78,0,IF(C13>0.78<0.8,40,IF(C13>0.8<0.84, 50,IF(C13>0.84<0.88,60,IF(C13>0.88<0.92,70,IF(C13> 0.92<0.98,80,0))))))

20070929, 01:33 #2
 Join Date
 Feb 2002
 Location
 A Magic Forest in Deepest, Darkest Kent
 Posts
 5,681
 Thanks
 0
 Thanked 1 Time in 1 Post
Re: Nested if formula (2003)
Hi Robin
Try
=IF(C13<0.78,0,IF(AND(C13>0.78,C13<0.8),40,IF(AND( C13>0.8,C13<0.84),50,IF(AND(C13>0.84,C13<0.88),60, IF(AND(C13>0.88,C13<0.92),70,IF(AND(C13>0.92,C13<0 .98),80,0))))))Jerry

20070929, 01:38 #3
 Join Date
 Mar 2002
 Posts
 84,353
 Thanks
 0
 Thanked 31 Times in 31 Posts
Re: Nested if formula (2003)
A condition such as C13>0.78<0.8 is not valid, and not necessary either. Try this instead:
=IF(C13<0.78,0,IF(C13<0.8,40,IF(C13<0.84,50,IF(C13 <0.88,60,IF(C13<0.92,70,80)))))
I would use a lookup table and a VLOOKUP formula. This is is much more flexible: you can easily change a boundary value or a return value. See the attached workbook.

20070929, 05:44 #4
 Join Date
 May 2002
 Location
 Canberra, Australian Capital Territory, Australia
 Posts
 5,240
 Thanks
 2
 Thanked 470 Times in 387 Posts
Re: Nested if formula (2003)
Hi Robin,
What is meant to happen at 80%, 84% and 88% and between 92% and 98%? So far, you've got two apparent outcomes for 80%, 84% and 88% and none between 92% and 98%.Cheers,
Paul Edstein
[MS MVP  Word]