On 1/02/2012 2:56 AM,
ar...@payroll.nyc.gov wrote:
> =(0.2*H5)-
> (0.05*(MAX(H5-100,0)))-0.05*(MAX(H5-250,0))-0.02*(MAX(H5-500,0))
Just to expand on Allan's formula, I converted the actual decimals to a
cell reference to allow for price changes.
Keep in mind though this is only handy for an on-the-spot pricing and
should not be used in a Historical/Archival way as it will have a global
effect, changing all cells that rely on this.
=(H1*H5)-(H2*(MAX(H5-100,0)))-H2*(MAX(H5-250,0))-H3*(MAX(H5-500,0))
Change the cells addresses to suit your sheet layout/structure, you
could even house the pricing on another sheet and point to those cells.
=(PricingSheet!H1*H5)-(PricingSheet!H2*(MAX(H5-100,0)))-PricingSheet!H2*(MAX(H5-250,0))-PricingSheet!H3*(MAX(H5-500,0))
HTH
Mick.