Need Parentheses Help

mrpearl11

New Member
Joined
May 24, 2011
Messages
15
I need parentheses help. I keep getting the error that I have one or more extra closed parentheses.

Here is my formula:
=IF(AZ5*.8)+AO5<50, (AZ5*.8)+AO5*0.11, IF(AZ5*.8)+AO5<1000, 5.50+((AZ5*.8)+AO5-50)*0.06, 6+57+((AZ5*.8)+AO5 -1000)*0.02)

What I am trying to do is:
Give 20% off AZ.
Add AO to AZ with 20% off.
if AZ+AO is less than 50 then multiply the sum of AZ*.8 plus AO by .11
if AZ+AO is less than 1000 then multiply the sum of AZ*.8 plus AO by .06
if AZ+AO is more than than 1000 then multiply the sum of AZ*.8 plus AO by .02

Any help would be appreciated.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Just off the top of my head, try adding a ( after the 3rd character

=IF((AZ5*...

I just also saw that the nested IF is also missing a (
 
Upvote 0
=IF((AZ5*.8)+AO5<50, (AZ5*.8)+AO5*0.11, IF(AZ5*.8)+AO5<1000, 5.50+((AZ5*.8)+AO5-50)*0.06, 6+57+((AZ5*.8)+AO5 -1000)*0.02)

Like this?
 
Upvote 0
I made a few changes

=IF((AZ5*.8)+AO5<50, ((AZ5*.8)+AO5)*0.11, IF((AZ5*.8)+AO5<1000, 5.50+((AZ5*.8)+AO5-50)*0.06, 5.50+60+((AZ5*.8)+AO5 -1000)*0.02))

The first two sections work with your input while the last section gives me a number too high.

If you make AZ to be 1200
AO to be 17.04

I would have expected the answer to be $53.54 instead the answer was $61.12.
 
Upvote 0
Maybe ...

=(80%*AZ5 + AO5) * LOOKUP(80%*AZ5 + AO5, {0,50,1000}, {11,6,2}%)
 
Upvote 0
that's getting close. trying to get it to be $53.54 when the value is 1200.
if AZ+AO is more than than 1000 then multiply the sum of AZ*.8 plus AO by .02

1200 * 2% is 24, not 53.54
 
Upvote 0
It's probably to do with the order Excel calculates.
It does * and / before + and -
And anything inside parens () has priority

so this
5.50+60+((AZ5*.8)+AO5 -1000)*0.02
may not be doing EXACTLY what you think it is..

it's doing it in this order
Step1. AZ5*.8
Step2. (Step1)+AO5 -1000
Step3. (Step2)*0.02
Step4. 5.50+60+Step3

Perhaps you want this
(5.50+60+((AZ5*.8)+AO5 -1000))*0.02

Step1. AZ5*.8
Step2. (Step1)+AO5 -1000
Step3. 5.50+60+(Step2)
Step4. (Step3)*0.02
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top