+ Reply to Thread
Results 1 to 3 of 3

calculating postage costs based on weight but only if postage is required.

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Leeds, England
    MS-Off Ver
    Excel 2011
    Posts
    2

    calculating postage costs based on weight but only if postage is required.

    hi

    i need my spreadsheet to be able to calculate the price to add on for shipping based on how much the order weighs.
    however, sometimes an order might not be posted and so no shipping costs will be required.

    the postal rates are calculated using the formula =IF(SUM(C12:C21)<=50,12,25)
    the weight of each product goes in c12:c21 and then if the total weight of the order is less than or equal to 50kg, it will add on £12 in shipping costs, otherwise if it is over 50kg in weight it will add on £25 in shipping costs.
    the problem i need to solve is sometimes postage is not required to be added onto the order because the customer is going to be picking up the products.

    i had created a cell where the user can type in a "y" or an "n" if postage is or isn't required but i cannot construct a formula that will then either remove the postal costs or add the costs in based on the weight as outlined above.

    i've attached a screen grab of my spreadsheet to help give you an idea of the layout.

    how would i implement the solution i've mentioned and what would the formula be?

    thanks for any help.

    screengrab.png
    Last edited by waitey1234; 11-02-2012 at 03:29 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: calculating postage costs based on weight but only if postage is required.

    I don't see the cell where you have the "y" / "n". Assuming it is in A1, the formula would be

    =IF(A1="y",IF(SUM(C12:C21)<=50,12,25),0)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    Leeds, England
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: calculating postage costs based on weight but only if postage is required.

    that's it!

    i had taken out the postage y/n because i couldn't get it to work but i've added it back in and using your formula is works perfectly now.

    you're a life saver!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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