# Thread: Nested if formula (2003)

1. ## 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))))))

2. ## 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))))))

3. ## 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.

4. ## 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%.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•