Multi-tier Commission Calculations

  • Thread starter Thread starter stephj
  • Start date Start date
S

stephj

I am trying to write a formula to calculate a multi-tiered commission
payable.

For example: 51% of first 1,000 in sales (0-1,000)
53% of next 500 in sales (1,001-1,500)
55% of next 1,000 in sales (1,501 -2,500)
57% of all sales in excess of $2,500 (2,500 +)

Thanks for any help!
 
Stephj,

=51%*Amount+2%*MAX(Amount-1000,0)+2%*MAX(Amount-1500,0)+2%*MAX(Amount-2500,0
),
where amount is the name of the cell containing the salesamount you are
calculating the commission of.

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *
 
A similar solution can be found on Chip Pearson's site. I find them very
ingenious, but difficult to remember.
So I always use this UDF:

================================================================
Function PercPerSegment(Amount As Double, Table As Range) As Double
' Progressive pricing
' First argument is the quantity to be priced
' or the amount to be taxed
' Second argument is the Price or Tax% table (vertical)
' Make sure both ends of the table are correct;
' usually you start with zero and the corresponding price or %
' any value should be found witin the limits of the table, so
' if the top slice is infinite, then use
' something like 99999999999999999 as threshold
' and =NA() as corresponding value

Dim StillLeft As Double
Dim AmountThisSlice As Double
Dim SumSoFar As Double
Dim Counter As Long

StillLeft = Amount

For Counter = 1 To Table.Rows.Count - 1
AmountThisSlice = Application.Min(StillLeft, Table(Counter + 1, 1) _
- Table(Counter, 1))
SumSoFar = SumSoFar + AmountThisSlice * Table(Counter, 2)
StillLeft = StillLeft - AmountThisSlice
Next
PercPerSegment = SumSoFar
End Function
================================================================

I suppose I could have used the mcgimpsey/pearson Worksheet technique in the
UDF as well. I'll look into that some time...

Kind Regards,

Niek Otten

Microsoft MVP - Excel


Peo Sjoblom said:
 
Back
Top