# Nested IF....Maybe

#### bschulze

##### Active Member
I am looking for a formula to calculate a cell. I cannot come up with the proper formula. It has multiple parts:

Cell Range: A1:B1 (Sum)

-5% on first \$100
-Over \$100....2% up to \$95

This cell is to never be over \$100.00. I have tried this with some nested if statements but have had little success. Any assistance would be great.

### Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Can you clarify with an example? eg:

f A1+B1 is 400 you would have:

5% x 100 + 2% x 95 = 6.9.

Code:
``=IF(A1<=100,A1*0.05,MIN(5+((A1-100)*0.02),95))``

Thanks for the help. This is the formula I ended up using:

=IF(SUM(A1:B1)<=100,SUM(A1:B1)*0.05,MIN(5+((SUM(A1:B1)-100)*0.02),100))

=IF((100*0.05)+((H12-100)*0.02)>100,100,IF(H12<=100,H12*0.05,IF(H12>100,((100*0.05)+((H12-100)*0.02)),"Something Else")))

Hi bschulze

If the value is in A1 you can use:

Code:
``=MIN(A1,100)*5%+MIN(95,MAX(0,(A1-100)*2%))``

However, I don't understand in your post: "Cell Range: A1:B1 (Sum)"
What do you mean, this formula is to be applied to each of the 2 cells or to their sum? Please explain.

Hope this helps
PGC

Replies
1
Views
161
Replies
2
Views
96
Replies
4
Views
462
Replies
6
Views
232
Replies
18
Views
425

1,220,009
Messages
6,151,440
Members
451,028
Latest member
greekness1

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

### Which adblocker are you using?

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

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