I'm guessing this can be solved with a sumproduct but I really don't know for sure.
[TABLE="width: 500"]
<tbody>[TR]
[TD]0-5KM[/TD]
[TD]50%[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]5-10KM[/TD]
[TD]15%[/TD]
[TD]$10[/TD]
[/TR]
[TR]
[TD]10-15KM[/TD]
[TD]15%[/TD]
[TD]$15[/TD]
[/TR]
[TR]
[TD]15-20KM[/TD]
[TD]10%[/TD]
[TD]$20[/TD]
[/TR]
[TR]
[TD]20-30KM[/TD]
[TD]5%[/TD]
[TD]$25[/TD]
[/TR]
[TR]
[TD]30-40KM[/TD]
[TD]5%[/TD]
[TD]$25[/TD]
[/TR]
</tbody>[/TABLE]
Here's a table which shows how much we charge (col C) for various distances. Col B shows typically what percentage of our orders falls under which range.
I'd like to take an Order Vol, say 100K orders, and see what the results would be. So I'd like a formula to be something like:
100K * 50% * $5 + 100K * 15% * $10 + 100K * 15% * $15 etc
Is there an easier way to do this?
[TABLE="width: 500"]
<tbody>[TR]
[TD]0-5KM[/TD]
[TD]50%[/TD]
[TD]$5[/TD]
[/TR]
[TR]
[TD]5-10KM[/TD]
[TD]15%[/TD]
[TD]$10[/TD]
[/TR]
[TR]
[TD]10-15KM[/TD]
[TD]15%[/TD]
[TD]$15[/TD]
[/TR]
[TR]
[TD]15-20KM[/TD]
[TD]10%[/TD]
[TD]$20[/TD]
[/TR]
[TR]
[TD]20-30KM[/TD]
[TD]5%[/TD]
[TD]$25[/TD]
[/TR]
[TR]
[TD]30-40KM[/TD]
[TD]5%[/TD]
[TD]$25[/TD]
[/TR]
</tbody>[/TABLE]
Here's a table which shows how much we charge (col C) for various distances. Col B shows typically what percentage of our orders falls under which range.
I'd like to take an Order Vol, say 100K orders, and see what the results would be. So I'd like a formula to be something like:
100K * 50% * $5 + 100K * 15% * $10 + 100K * 15% * $15 etc
Is there an easier way to do this?