+ Reply to Thread
Results 1 to 3 of 3

Formula for Pricing Per Mile

  1. #1
    Registered User
    Join Date
    10-01-2023
    Location
    Conroe, Texas
    MS-Off Ver
    2016 I think
    Posts
    1

    Question Formula for Pricing Per Mile

    Hi Guys,

    I'm trying to create a formula for the following example (see picture). I have a friend using a software, and it's not taking an account for the return miles, so we are trying to build a formula that will give us the answer in Excel when we plug in the total round trip miles. An example is 302.14 miles, the 1st mile is $125, miles after that 1 mile up to 45 miles is .05 per mile, and the remainder are calculated at $3 per mile

    miles.png

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula for Pricing Per Mile

    You didn't show an Excel sheet so you will have to translate these formulas to fit your actual data layout.

    Values as displayed
    A
    B
    C
    D
    E
    F
    G
    1
    Miles
    Cost
    2
    First
    1
    125
    per mile
    60
    189.5
    3
    Next
    45
    0.5
    per mile
    4
    Remaining
    3
    per mile

    Underlying formulas
    A
    B
    C
    D
    E
    F
    G
    1
    Miles
    Cost
    2
    First
    1
    125
    per mile
    60
    =MIN(F2,B2)*C2+MAX(0,MIN(F2-B2,B3))*C3+MAX(0,F2-(B2+B3))*C4
    3
    Next
    45
    0.5
    per mile
    4
    Remaining
    3
    per mile
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Formula for Pricing Per Mile

    2016 I think
    Please check and update your profile accordingly.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-29-2022, 09:05 AM
  2. Formula for tiered per-mile costs
    By missdegs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2021, 05:50 PM
  3. [SOLVED] Formula to calculate pricing with graduated, cumulative tier pricing
    By laeyag in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2021, 04:42 AM
  4. Formula for Tiered pricing with various pricing matrix
    By kunaltalreja in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2020, 11:37 AM
  5. Replies: 5
    Last Post: 02-12-2018, 05:32 AM
  6. [SOLVED] Formula to convert MPH into min per mile?
    By General_T in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-07-2012, 02:55 PM
  7. How do I create a formula to calculate pace per mile?
    By hmb in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-21-2010, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1