Link to home
Start Free TrialLog in
Avatar of John Moura
John Moura

asked on

Tiered pricing equation issue with excel and google sheets.

Good Evening Experts,

I am having an issue building out a spreadsheet to solve a tiered mileage equation. I have tried using IF statements, SUMPRODUCT and vlookup statements but not having much luck. I tried "JE McGimpsey's" variable rate equation, but didn't have success.User generated image
The pricing structure is tired so that the first mile is billed at a higher rate, than the next ten miles are at a different rate, continuing so-on and so-on. I have included a mockup of what I am trying to accomplish with a few manually solved routes. I need to figure out a way to automate the calculations for A,B,C,D,E,F

Thanks for any help or insights you might have.
Avatar of Flyster
Flyster
Flag of United States of America image

Please refer to the attached. Formulas are in row 17. B17 is for the total miles. A nested IF formula is used to compute if the miles exceed the mileage range, are within the range or do not meet the range. The results are based off of the values in row 16 so if there is a price increase the results will still be correct.

Paul
Tiered-Pricing.xlsx
The following kind of formula may be used for tiered pricing problems.
=MAX(0,MIN(D$15,$B17)-C$15)*C$16

Open in new window

Row 15 (green highlighting) must show the bottom of each bracket. I took some liberties with your table to better match the words in your description. Note that the cost breakdown is slightly different from yours because of this.
TieredPricesQ29164555.xlsx
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.