Nested IF....Maybe

bschulze

Active Member
Joined
Jun 2, 2005
Messages
289
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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

lozzablake

Well-known Member
Joined
Dec 15, 2005
Messages
818
Can you clarify with an example? eg:

f A1+B1 is 400 you would have:

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

bschulze

Active Member
Joined
Jun 2, 2005
Messages
289
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))
 

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,896
=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")))
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
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
 

Forum statistics

Threads
1,141,218
Messages
5,705,076
Members
421,377
Latest member
FerdiFuchs

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
Top