+ Reply to Thread
Results 1 to 24 of 24

Freight calculator based on zipcode, weight and type

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Freight calculator based on zipcode, weight and type

    Hello,

    I found this sheet on this forum and I have tried to modify it into my needs. However, Im missing 'something'.

    I need it to calculate a price based on:

    zipcode within a prespecified range (works)
    type of delivery KANT or IND (works)
    find the price based on weight within a range(not working. It doesnt take the weight into account at the moment???)

    I then need to hide all the calculations so its easy to use and look at.

    Freight calculator zipcode weight and type.xlsx

    I hope one of you superexcelgeeks can help me out as I have no idea what Im doing....
    Last edited by Verox; 04-28-2013 at 06:30 AM.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Freight calculator based on zipcode, weight and type

    Hi,

    Try this formula instead in Q4

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


    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    it gives an error regarding the TYPE....

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Freight calculator based on zipcode, weight and type

    Have a look at the attachment, the formula seems to work fine on the example.

    Are you getting an error message or the wrong results? Are you modifying the example to your own needs or just testing on the uploaded copy?

    abousetta
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    I tested it on the uploaded copy.
    I just got an error when adding the formula... But yours seems to work.

    However, its not 100% correct yet. As I get an error when using zipcodes 1000-2499 (might be other places as well)
    I also get an incorrect price when using zipcode 5000 and weight 78 (it shows the price from the lower zipcodes)

    (try changing the price and you will see....)

    oh.. and thanks alot so far

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Freight calculator based on zipcode, weight and type

    Try this workbook
    Last edited by Marcol; 04-28-2013 at 07:53 AM. Reason: corrected error in attachment
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Marcol:

    Looks good. However, as I stated in the above post. I get the same error here. On the lower zipcodes and lower weights.... I get en error in the price (it shows: #I/T)

    I also get a wrong price here:

    Type: kant
    zipcode: 3700
    weight: 75
    price: same as the zipcoderange above (try changing the price and you will see)

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Freight calculator based on zipcode, weight and type

    Did you see the edited workbook?

  9. #9
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    yes! I opened the one you attached I still get errors on the low zipcodes (1000-2500) and wrong price as mentioned above...

  10. #10
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Freight calculator based on zipcode, weight and type

    Hi Verox

    Have a look at the attached. i am using the INDIRECT. If that is a problem the formula can be adapted. It seems to work!
    Last edited by Kevin UK; 04-28-2013 at 08:31 AM.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  11. #11
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Thanks Kevin, but now I cant get any of the prices to be correct It seems that it ends up picking from the wrong tables :/

  12. #12
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Freight calculator based on zipcode, weight and type

    So what would your expected price be for the following!

    Type: ind
    zipcode: 3702
    weight: 325

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Freight calculator based on zipcode, weight and type

    Try this amended workook, note the layout of columns B:C.

  14. #14
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Kevin!

    ahhhhhhhhh....... I made a mistake :P..... you are correct!

    however!

    one thing: if I enter the weight at the exact MAX for a column. it takes the price for the next tier instead of keeping the lower price. ie.(its not supposed to change to the higher price unless you enter 251 instead of 250)

    I hope you understand?
    (this also means that I cant enter a weight under 25 kg.... then it gives an error.... instead of the lowest price..


    we are almost there! very nice work
    Last edited by Verox; 04-28-2013 at 09:40 AM.

  15. #15
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Marcol. Looks ok. However I get some wrong prices when I change the weight etc...
    I think we are almost there with Kevin. If he can 'fix' the last issue then its done!! very nice work

  16. #16
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Freight calculator based on zipcode, weight and type

    Hi Verox

    Try the following, I will have another look later on as the rugby has started.

  17. #17
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Freight calculator based on zipcode, weight and type

    I'm having a bad hair day ... ...
    Try this workbook

    [EDIT]
    The Postcodes failed, one more go before I totally loose all credibilty!!!

    Are you using Excel 2003, or a later version?
    Last edited by Marcol; 04-28-2013 at 12:59 PM. Reason: Attachment Corrected

  18. #18
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Thanks all of you!

    Kevin: I think you nailed it this time. I will do some more testing, but it seems like it works as its supposed to do! YAY!
    Marcol: look above :P Kevin nailed it! but thanks a bunch!

  19. #19
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Freight calculator based on zipcode, weight and type

    Quote Originally Posted by Verox View Post
    Thanks all of you!

    ...
    Marcol: look above :P Kevin nailed it! but thanks a bunch!
    Try with weights <= to 25 and greater than 350, you still need some error handling.
    Last edited by Marcol; 04-28-2013 at 02:03 PM.

  20. #20
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Quote Originally Posted by Marcol View Post
    Try with weights <= to 25 and greater than 350, you still need some error handling.
    Aye - Just noticed Thanks!

    it cant handle weight 25kg or less..... and 351 or higher (currently its just supposed to use the same price if its higher than 350... as in this case... it never should be....
    but less than 25kg COULD happen....

  21. #21
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    **Hoping for a fix from Kevin** :P

  22. #22
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Freight calculator based on zipcode, weight and type

    Hi Verox

    See the attached file, I have changed the formula to a straight INDEX & MATCH. I have used a helper row (Row 9) for the match. It could be adapted for the Weight column headers if required, but I think this is a simpler solution. have a look and see how you get on!
    Last edited by Kevin UK; 04-29-2013 at 04:49 AM.

  23. #23
    Registered User
    Join Date
    04-25-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Freight calculator based on zipcode, weight and type

    Really awesome! seems to work as its supposed now!

    Thanks a million :P

  24. #24
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Freight calculator based on zipcode, weight and type

    Hi Verox

    No problem, we got there in the end! Thank you for the feed back.

+ 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