Closed Thread
Results 1 to 13 of 13

Calculate Courier Costs

  1. #1
    Forum Contributor
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    101

    Calculate Courier Costs

    Please could someone help provide a formula for me to calculate courier costs based on a consignments weight?

    Courier charges are a flat fee for then first 1/2 kg and then a cost per kg, or part kg thereafter.

    I have attached a basic spreadsheet as an example.

    The spreadsheet lists part codes and their total weight in kg.
    There is a £3 for the first 1/2 kg and £1 per kg or part kg there after.
    For example cell B4 has a weight of 3.45kg, so the formula should return the result of £6.

    The formulas I have tried do not seem to take into account the part kg's or the first 1/2 kg correctly.

    Thanks

    James
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,212

    Re: Calculate Courier Costs

    HI jimbokeep,

    Try this is c2 and pull it down.

    =IF(B2<0.5,3,(B2-0.5)+3)

    Do you need to round up to the nearest?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Calculate Courier Costs

    Thanks very much for the response.

    Yes, it does need to round up to the nearest.
    So for example the formula you have provided will return a cost of £3.27 in cell C2, but all part kg's should be charged as a whole kg, so the total cost should be £4.00. (£3 for the first 1/2 kg and then £1 for the remaining 0.27kg)

    It's finding a formula that will multiply the part kg's as whole kg's that I've been struggling with.

    Thanks,

    James

  4. #4
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Calculate Courier Costs

    Cell C2 should have this formula:
    =IF(B2<0.5,3,3+ROUNDUP(B2-0.5,0))
    then copy down the column.

  5. #5
    Forum Contributor
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Calculate Courier Costs

    Thanks very much for the response, it's returning the correct results, but it's not quite what I am after.

    For example, I can see how I can link this formula to the cost for the first 1/2 kg to automate the formula should I change the £3 cost to another value.
    But if I was to change the cost per kg thereafter, from £1 to another value, the formula doesn't take that into account, and I cannot see how I can amend the formula to account for that.

    If you could help amend the formula slightly, so that if I was to change either of the costs in cells B8 and B9, it would update automatically, that would be fantastic and would genuinely make my day.

  6. #6
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Calculate Courier Costs

    Great thought - planning ahead!
    I think of those figures as CONSTANTS and usually put them in a block of cells to be referenced later.
    You have them in cells B8 and B9, so just change hard-coded values (1 and 3) to the reference cells.
    Cell C2 should have this formula:
    =IF(B2<0.5,$B$8,$B$8+$B$9*ROUNDUP(B2-0.5,0))

  7. #7
    Forum Contributor
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Calculate Courier Costs

    That's brilliant. Thanks very much.
    It seems reasonably simply now you have explained it, but I just couldn't piece it together.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculate Courier Costs

    Maybe this will help you. If you change the values in the chart of costs the total costs will change accordingly.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    C
    1
    Part code Weight (kg) Courier Cost
    2
    AAAA
    0.77
    £ 4.00
    3
    BBBB
    0.50
    £ 3.00
    4
    CCCC
    3.45
    £ 6.00
    5
    DDDD
    1.27
    £ 4.00
    6
    7
    Courier Costs
    8
    Cost for 1st 1/2 kg
    £ 3.00
    9
    Cost per kg or part kg thereafter
    £ 1.00
    10
    Base Weight
    0.5
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Forum Contributor
    Join Date
    08-25-2015
    Location
    Near Pittsburgh, PA
    MS-Off Ver
    Excel 2013
    Posts
    152

    Re: Calculate Courier Costs

    So can you now, yourself, edit the formula to account for the 0.5 kg by referencing the CONSTANT cell - or would you like help with that?

  10. #10
    Forum Contributor
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Calculate Courier Costs

    I ok with that bit thanks candybg, though thanks for the offer of help.

  11. #11
    Forum Contributor
    Join Date
    06-30-2010
    Location
    swindon, england
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Calculate Courier Costs

    Thanks for the response newdoverman

  12. #12
    Registered User
    Join Date
    02-24-2022
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Calculate Courier Costs

    Hi
    Wow what a great thread, i am looking to do something similar and have used the original excel spreadsheet and followed the previous advice and amended to work with what I need, I am now stuck as my courier has a three tier pricing structure and I am unsure how to add the final part for the combined weight of parcels, when the combined weight is over 100Kg then every Kg over 100Kg is charged at £0.35 per Kg
    Attached Files Attached Files

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,559

    Re: Calculate Courier Costs

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Can SUMPRODUCT be used to calculate monthly costs?
    By trickyvic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2016, 07:15 AM
  2. Calculate costs
    By Adam46 in forum Excel General
    Replies: 3
    Last Post: 09-13-2014, 08:07 AM
  3. [SOLVED] Calculate electric costs
    By Creature in forum Excel General
    Replies: 8
    Last Post: 06-01-2012, 09:57 AM
  4. [SOLVED] Calculate Recurring Cumulative costs
    By TStone1 in forum Excel General
    Replies: 6
    Last Post: 05-11-2009, 05:09 PM
  5. Calculate item costs
    By invisible_hawk in forum Excel General
    Replies: 1
    Last Post: 09-07-2008, 11:57 AM
  6. calculate costs for the whole project
    By Steel_lady in forum Excel General
    Replies: 3
    Last Post: 02-19-2008, 06:28 AM
  7. How to calculate shipping costs based on subtotal
    By mywaters in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2006, 10:31 AM

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