# Thread: If Formula Error Thanks: 0 Likes: 0

1. ## If Formula Error

Hi All,

I am entering the below formula but it says missing parenthesis

=IF(AND(C10>0%,C10<80%),0,IF(AND(C10>=80%,C10<=100%),C7*C10,IF(AND(C10>=100%,C10<=120%),(C5*0.5%+(C7-C5)*1.5%,IF(C10>120%,(C5*0.75%+C5*120%*1.5%+(C7-C5*120%)*2%

Can any one help

C5 is Domain Target
C7 is Achievement

Range is below
 Range Incentive % 0-80% Nil 80-100% 0.75% 100 -120 % 1.50% 120 & above% 2.00%

2. ## Re: If Formula Error

Originally Posted by Mangesharalkar
Hi All,

I am entering the below formula but it says missing parenthesis

=IF(AND(C10>0%,C10<80%),0,IF(AND(C10>=80%,C10<=100%),C7*C10,IF(AND(C10>=100%,C10<=120%),(C5*0.5%+(C7-C5)*1.5%,IF(C10>120%,(C5*0.75%+C5*120%*1.5%+(C7-C5*120%)*2%

Can any one help

C5 is Domain Target
C7 is Achievement

Range is below
 Range Incentive % 0-80% Nil 80-100% 0.75% 100 -120 % 1.50% 120 & above% 2.00%

Hey,

You need to close your IFS:

=IF(AND(C10>0%,C10<80%),0,IF(AND(C10>=80%,C10<=100%),C7*C10,IF(AND(C10>=100%,C10<=120%),(C5*0.5%+(C7-C5)*1.5%,IF(C10>120%,(C5*0.75%+C5*120%*1.5%+(C7-C5*120%)*2%))))))

3. ## Re: If Formula Error

Brackets also need to be closed inside the formula not just on the end.

=IF(AND(C10>0%,C10<80%),0,IF(AND(C10>=80%,C10<=100%),C7*C10,IF(AND(C10>=100%,C10<=120%),(C5*0.5%+(C7-C5)*1.5%),IF(C10>120%,(C5*0.75%+C5*120%*1.5%+(C7-C5*120%)*2%),FALSE))))

4. ## Re: If Formula Error

BarryL you are correct. Escaped my old tired brain.

5. ## Re: If Formula Error

You may find it easier to spot problems by splitting the formula onto separate lines in the cell with {Alt}{Enter}
- Excel's colour coding help match opening and closing parentheses on each line
- count opening IF parentheses and match with closing ones

=IF(AND(C10>0%,C10<80%),0,
IF(AND(C10>=80%,C10<=100%),C7*C10,
IF(AND(C10>=100%,C10<=120%),(C5*0.5%+(C7-C5)*1.5%),
IF(C10>120%,(C5*0.75%+C5*120%*1.5%+(C7-C5)*120%*2%),"something missing here"))))

## User Tag List

#### Posting Permissions

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