+ Reply to Thread
Results 1 to 16 of 16

Freight Calculator

  1. #1
    Registered User
    Join Date
    10-14-2009
    Location
    U.S.
    MS-Off Ver
    Office 2007
    Posts
    12

    Freight Calculator

    I'm building a freight calculator and am considering some professional consulting options, but before I do that I wanted to see if I could overcome this one problem. If I can, I think I might be able to complete the calculator myself.

    Here's my conundrum:

    A potential customer enters "80802" for zip code and "Solomon" for store.

    StoreLocation_________ City_______ State_____ Zip______ Distance
    Solomon__________ Arapahoe _______CO ____ 80802_____ 270
    Garden City_______ Arapahoe_______ CO _____80802_____ 143

    The formula (or series of formulas) I'm looking for would then refer to the following hidden sheet and return Arapahoe, CO and a distance of 270 miles from Solomon.

    Any insight would be very appreciated. Thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Freight Calculator

    best you first set up a grid like a mileage chart with all that info in
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-14-2009
    Location
    U.S.
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Freight Calculator

    Yes, It's currently in a grid mileage chart (atleast I think it's set up as you ask). I went ahead and attached the data.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Freight Calculator

    if its only 2 stores then
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-14-2009
    Location
    U.S.
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Freight Calculator

    Martindwilson, I'll take a look at that. Looks promising so far! I'll be dissecting it and trying to absorb...

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Freight Calculator

    If you need to be able to select any pair of stores, then in Excel 2007, you have sufficient columns to represent inter-store distances much more compactly as a single table rather than as one tab per store.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    10-14-2009
    Location
    U.S.
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Freight Calculator

    @ shg: I'll keep that in mind. If there's ever a chance I'll edit this on a pre-2007 version of office, would that give me trouble?

    @ Martindwilson:I noticed that the zip code must be entered as text using the apostrophe... Do you mind me asking why it has to be done that way?

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Freight Calculator

    Do you need to know the distance between any pair of stores?

    How many stores are there?

  9. #9
    Registered User
    Join Date
    10-14-2009
    Location
    U.S.
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Freight Calculator

    Quote Originally Posted by shg View Post
    Do you need to know the distance between any pair of stores?

    How many stores are there?
    Nope- I don't need the distance between the stores.

    There are only these two stores. Which store the customer picks just depends on which one is closest to their location (or if they happen to be in the area).

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Freight Calculator

    because your originals in cols d are text numbers
    to fix that change your originals to real numbers
    select column d
    then data text to columns
    click finish
    repeat for other sheet
    else format cell A2 as text then enter your zip

  11. #11
    Registered User
    Join Date
    10-14-2009
    Location
    U.S.
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Freight Calculator

    Quote Originally Posted by shg View Post
    If you need to be able to select any pair of stores, then in Excel 2007, you have sufficient columns to represent inter-store distances much more compactly as a single table rather than as one tab per store.
    Here's a question- how do I move those tables from their separate tabs/worksheets to the first tab (with the freight calculator)?

    I know I can copy/cut & paste, but if I highlight and drag the data then the formulas that go to those worksheets will transfer with the data- while just pasting won't carry the formulas with them.

    (thanks martindwilson- that worked perfectly)

  12. #12
    Registered User
    Join Date
    11-18-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Freight Calculator

    this is exactly the same sort of thing i want to do but I have about 12 different departure towns that i want to be able to choose from and then enter a destination town and then see the distance. if I used your formula martindwilson I would have to repeat it 12 times for my 12 stores. Would this work? If not is there another option? I am already using a vlookup formula for just one store.

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Freight Calculator

    Truman, please take a few minutes to read the forum rules, and then start your own thread.

    Thanks.

  14. #14
    Registered User
    Join Date
    01-20-2010
    Location
    Plovdiv, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Freight Calculator

    Hi guys,

    It would great if you help me with the freight calculator I am trying to prepare.
    The table in the attached file will be hidden. My client should choose country and zip code (note that I will operate with around 10 countries) and based on the purchased item's weight [50 or 100 kg - I need kind of VLOOKUP formula here, because the weight can vary from 50 to 10 000 (more columns are coming)], I have to calculate what would the charges be.

    Thank you so much!
    Attached Files Attached Files

  15. #15
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Freight Calculator

    please start a new thread with this question

  16. #16
    Registered User
    Join Date
    01-20-2010
    Location
    Plovdiv, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Freight Calculator

    Noted. "Freight calculator issue" thread created. Thank you

+ 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