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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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))
 
Upvote 0
=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")))
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

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