A day late and a dollar short....

Bob Rooney

Board Regular
Joined
Jul 25, 2006
Messages
169
Didn't see the March 2007 challenge until it was too late, but here is my take...

In B10
=IF(SUM($A9:A9)>=$E$5,B9*$G$5,IF(SUM($A9:B9)<=$E$5,B9*$F$5,(SUM($A9:B9)-$E$5)*$G$5+($E$5-SUM($A9:A9))*$F$5))

Copy across to M10.

Lookup tables would be the way to go if there are more pricing tiers. I know Chip Pearson's website and a few others have progressive pricing formulas that will work here as well.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Yeah, I missed it too. I wasn't paying attention. As penance, I built one without using an if function.

In B9
=((--(SUM($A$8:A8)>$E$4))*B8*$G$4)+(--((SUM($A$8:A8)<$E$4))*(--((SUM($A$8:B8)>$E$4))*(((SUM($A$8:B8)-$E$4)*$G$4)+(($E$4-SUM($A$8:A8))*$F$4))))+((--(SUM($A$8:B8)<=$E$4))*(B8*$F$4))
 

Forum statistics

Threads
1,222,719
Messages
6,167,833
Members
452,146
Latest member
Baldred

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