Table with complex calculations

R

Rick

I have a complex formula that I can't seem to find the right combinations of
If/then and lookup statements. I also am having difficulting searching for
the right solution as to what I am trying to accomplish.

I need to be able to give discounts to volume users of a copy machine and
give them 4 levels of volumn discount costs.
Example of Table:
0 to 100 = 0.08
101 to 200 = 0.06
201 to 500 = 0.05
500= 0.04

User A had 750 copies in the month, so 1st 100 would cost .08, then the next
100 would cost .06, then the next 300 would cost .05, and the last 250 would
cost .04.

User B had 450 copies in the month, so 1st 100 would cost .08, then the next
100 would cost .06, then the next 250 would cost .05.

User C had 1200 copies in the month, so 1st 100 would cost .08, then the
next 100 would cost .06, then the next 300 would cost .05, and the remaining
700 would cost .04.

I have this Tiered Table in a separate Worksheet and I want to be able to
adjust these four costs or four tier totals without changing the formula in
each cell for each user. User Totals are listed in each row and the formula
will be in the last column for their total cost for all copies based on
volumn discounts.

Can you direct me to the best location for searching for a solution? Thanks.
 
R

Rick

This formula:
=IF(N9=0,"",IF(AND(N9>Tier!$A$2,N9<Tier!$B$2),N9*Tier!$C$2,IF(AND(N9>Tier!$B$2,N9<Tier!$B$3),SUM((Tier!$B$2*Tier!$C$2)+((N9-Tier!$B$2)*Tier!$C$3)),IF(AND(N9>Tier!$B$3,N9<Tier!$B$4),SUM((Tier!$B$2*Tier!$C$2)+((SUM(Tier!$B$3-Tier!$B$2)*Tier!$C$3)+((N9-Tier!$B$3)*Tier!$C$4))),IF(N9>Tier!$B$4,SUM((Tier!$B$2*Tier!$C$2)+(SUM(Tier!$B$3-Tier!$B$2)*Tier!$C$3)+(SUM(Tier!$B$4-Tier!$B$3)*Tier!$C$4)+(SUM(N9-Tier!$B$4)*Tier!$C$5)))))))

Is reduced to this formula:
=SUMPRODUCT(--(N9>Tier),(N9-Tier),dRate)

WOW! Many thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top