+ Reply to Thread
Results 1 to 3 of 3

Calculating Shipment Rates Base on Origin City and Destination City

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Coquitlam
    MS-Off Ver
    Excel 2010
    Posts
    11

    Calculating Shipment Rates Base on Origin City and Destination City

    Hey, what I am trying to figure out is how to match a series of rates for a destination city depending upon the origin city. I have figured out how to match rates from origin city to multiple destination cities but have not figured out how to change the series of rates when the origin city changes. These rates will be calculated on the "calculator" in the excel document depending on the cities chosen.

    I have attached a document that shows a simplified version of what I am trying to do.

    Any help would be greatly appreciated. Thanks!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Calculating Shipment Rates Base on Origin City and Destination City

    How many different rate tables do you have, and how would you know which 1 to use? Looking at the calc sheet, I cannot see where it tells me to use "Vancouver? or "Edmonton?

    Maybe create a range name for each table. It looks like the city names are the same in both (+other???) tables, so you could probably use only 1 set of names, and then change the forumla to something like this...
    =INDEX(Vancouver,MATCH(E28,Rates!A1:A39,0),MATCH(A28,Rates!B1:G1,1))

    If you put the table name in its own cell (and maybe use data valudation), you could change to something like this. (A25 contains my DV list)...
    =INDEX(INDIRECT(A25),MATCH(E28,Rates!A2:A39,0),MATCH(A28,Rates!B1:G1,1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-24-2014
    Location
    Coquitlam
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Calculating Shipment Rates Base on Origin City and Destination City

    Currently there is only one rate table being used the "From Vancouver To" table. The rates being calculated right now only incorporate the Destination Province and City Delivering Point tables, which are matching to the rates on the "From Vancouver to" table. In other words when I am choosing a destination city and province the freight is pulling these numbers from the "From Vancouver To" Table. =INDEX(Rates!A1:G39,MATCH(E28,Rates!A1:A39,0),MATCH(A28,Rates!A1:G1,1)) So as you can see in the formula currently being used its only matching E28 to the corresponding city on the From Vancouver To rate table.

    I have individual rate tables for each city to the rest of the cities, for instance, From Calgary To every city like in the Vancouver rate table.

    So what I want to do is be able to choose the Origin city, which is based on the origin province (Just using data validation here) and choose a destination city based on the destination province. Once those are chosen the corresponding "From (City) To" rate table will be match to the Origin city and the freight charge will match to the destination city on this rate table as well as the freight weight, finding the correct weight.

    For example:

    Freight Weight: 800, Origin Province: Alberta, Origin City: Edmonton, Destination Province: Ontario, Destination City: Toronto, Freight Charge:2

    Hopefully that is more clear, sorry for not explaining it as well before hand.

+ 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: 5
    Last Post: 04-30-2013, 09:32 PM
  2. Calculating City to City -road miles
    By williesmith2008 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2012, 05:19 AM
  3. [SOLVED] Calculating Monthly Premium rates base on age
    By rtee in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-07-2012, 10:35 PM
  4. [SOLVED] City ID
    By alinush in forum Excel General
    Replies: 3
    Last Post: 10-01-2012, 04:03 PM
  5. extract city using city list lookup
    By terrysoper1973 in forum Excel General
    Replies: 1
    Last Post: 09-07-2011, 01:43 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