Stumped

dhaderle

New Member
Joined
Aug 21, 2002
Messages
37
Math problem for you all that I'm trying to solve without a bunch of IF statements or lookups.

I have an input cell for widgets. I price 400 widgets at $32.00 each. For every additional widget the price will be one penny less. So, 401 widgets entered in will yield a price of $31.99, 402 widgets equal $31.98, etc, etc....
At 500 widgets, the price decrease changes to two pennies less for every incremental widget. At 600 widgets the price then is fixed at $29.00 At 400 or less the price is $32.00/each.

Is there a formula/function able to solve this?

Thanks!
 
dhaderle said:
Thanks Ronald! Though, I don't quite understand it the formula.
Sorry for the delay in responding. I seem to be missing some of my E-mail notifications.

I don't know of any good way to explain the formula other than by having you examine the behavior of the individual terms. In the sheet below I've shown the results for some of the terms around the key breakpoints in your pricing scheme (400, 500, and 600 units). The headers in columns B, C, D, E are the formulas in row 2.

For up to 400 widgets, the column B and column C results are constant at 4.00 and 5.00. These results combine to give a column D result of 32.00, as you stipulated.

Observe the column B result when the number of widgets starts exceeding 400. It increases by .01 for each additional widget. The column C result is still fixed at 5.00 at this point. Column B contributes negatively to column D, so the net effect on column D is that it begins decreasing by .01 for each additional widget.

When the number of widgets starts exceeding 500, the column C result begins increasing by .01 for each additional widget (and column B is still increasing by .01 per widget). So the net effect on column D is that it begins decreasing by .02 for each additional widget.

How long does this go on? Well, it happens that your pricing policy of 29.00 each for 600 or more units was consistently chosen, in that it agrees with the column D result at 600 units. In other words, there was no sudden discontinuity in your pricing at 600 units. So it is sufficient to limit the column D result to 29 or greater, which is just what column E does. If there had been some discontinuity in pricing at 600 units, some further logic would have been required.
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,215,692
Messages
6,126,228
Members
449,303
Latest member
grantrob

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