+ Reply to Thread
Results 1 to 6 of 6

Applying a Tiered tariff to calculation

  1. #1
    Registered User
    Join Date
    03-23-2020
    Location
    HK
    MS-Off Ver
    2013
    Posts
    3

    Applying a Tiered tariff to calculation

    Hi Everyone,

    My first post here and i hope this is done right. PLease note i have an issue where i have varioud vedors having different tariff based on day range. I have inserted sample Data avaiable and the tariff.

    in the file i also included expected result . Hope someone can help me understnd how to write a formula to look at all the parameters.
    1) Carrier Name
    2) Container Type
    3) Free time
    4) Tariff to be selected
    5) calculated total USD

    so

    PLEASE HELPW
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Applying a Tiered tariff to calculation

    The below would, I believe, replicate your results:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-23-2020
    Location
    HK
    MS-Off Ver
    2013
    Posts
    3

    Re: Applying a Tiered tariff to calculation

    Hi There XLent, thank you !!! it seems to work, though am wondering if i have more criteria what would i need to add / ammend?

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Applying a Tiered tariff to calculation

    If, by criteria, you're referring to conditions that determine appropriate rate then the answer is to add appropriate tests within the AGGREGATE.

    In basic terms the AGGREGATE is finding the last row in which all criteria are met using a construct of

    ROW(range) / (boolean test 1) / (boolean test 2) / (boolean test 3)

    In native XL Booleans, when coerced via a mathematical operator, equate to either 1 (True) or 0 (False)

    Given the above it follows that if any one of the Boolean tests / conditions return False then the resulting value from above calc will, instead of a row number, be #DIV/0!
    note: the 2nd parameter of the AGGREGATE [6] tells XL to ignore the errors... so it only looks at results where the result was valid, i.e. rows in which a valid result was found

    The 1st parameter of the AGGREGATE [14] tells XL to apply a LARGE call to the resulting array of values whilst the final parameter [1] tells XL to use the Largest value (i.e. k)
    so, if you used 2 it would return 2nd largest etc)

    This approach works here because your rates are listed in ascending order, and you want the last found that satisfies all conditions (which would be in the 'largest' row number)

    the outer INDEX simply uses the result of the AGGREGATE to return the associated value - so if AGGREGATE returned 21 the INDEX would return contents of P21 etc

  5. #5
    Registered User
    Join Date
    03-23-2020
    Location
    HK
    MS-Off Ver
    2013
    Posts
    3

    Re: Applying a Tiered tariff to calculation

    Thanks So Much i think i have gotten the first one to work.

    However using the above i struggle with how to apply this if the tariff changes. For example i waiting charge per hour. XX and then if it hits 24 hours the amount becomes a day charge

    Attached is what i am now trying to solve but i cannot seem to get the aggregate to work at all. (Attached file) Need to solve for cell B2 and then drag down hopefully

    Hopeful you can advise me of this. Much Appreciated!
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Applying a Tiered tariff to calculation

    at B2
    =MOD(A2,24)*7+TRUNC(A2/24)*100
    copy down

+ 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. Tiered Charges Calculation
    By ExcelNovice1991 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-08-2019, 11:25 AM
  2. [SOLVED] Tiered Severance Calculation
    By mrrainbow84 in forum Excel General
    Replies: 6
    Last Post: 02-28-2016, 01:21 PM
  3. Help with tiered cumulative calculation
    By 99Chris99 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-25-2016, 11:40 AM
  4. [SOLVED] Calculation of charges based od tariff pricelist
    By forfiett in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-31-2013, 05:47 PM
  5. Tiered Commission Calculation
    By Rushmore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2012, 12:18 AM
  6. Tiered Pricing Commission Calculation
    By kludge in forum Excel General
    Replies: 2
    Last Post: 04-13-2011, 06:10 PM
  7. Tiered Calculation
    By Derek Borckmann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2006, 12:20 AM

Tags for this Thread

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