ExcelHelpPls
New Member
- Joined
- Jun 20, 2011
- Messages
- 10
Greetings,
Background:
I have a grid of unit ranges, and prices for different client types.
Column A is the minimum of the range
Column B is the Maximum of the range (currently not used in my formulas).
Column C is the price for Client type 1
Column D is the price for Client type 2
Column E is the price for Client type 3
When calculating the total price of an order, the tiers are graduated, so that the units 0-1000 cost .35 each and 1001-5000 are .33 each. So an order of 2000 should equal $680 (.35*1000+.33*1000). The following formula works for the calulation (where P9 is the number of units):
=SUMPRODUCT(--(P9>{0,1000,5000}),(P9-{0,1000,5000}), {0.35,-0.02,-0.03})
My question: Is there a way to replace the "0,1000,5000" and ".35,-.02,-.03" array items with cell references, so that I can easily change the prices of an item without having to also change the individual formula? I tried logically to simply replace them with A1, A2, A3 and C1, C2, C3, and the formula doesn't recognize the cells.
Any help is greatly appreciated!
Background:
I have a grid of unit ranges, and prices for different client types.
Column A is the minimum of the range
Column B is the Maximum of the range (currently not used in my formulas).
Column C is the price for Client type 1
Column D is the price for Client type 2
Column E is the price for Client type 3
When calculating the total price of an order, the tiers are graduated, so that the units 0-1000 cost .35 each and 1001-5000 are .33 each. So an order of 2000 should equal $680 (.35*1000+.33*1000). The following formula works for the calulation (where P9 is the number of units):
=SUMPRODUCT(--(P9>{0,1000,5000}),(P9-{0,1000,5000}), {0.35,-0.02,-0.03})
My question: Is there a way to replace the "0,1000,5000" and ".35,-.02,-.03" array items with cell references, so that I can easily change the prices of an item without having to also change the individual formula? I tried logically to simply replace them with A1, A2, A3 and C1, C2, C3, and the formula doesn't recognize the cells.
Any help is greatly appreciated!