+ Reply to Thread
Results 1 to 5 of 5

Rate Table Lookup. IF Statements or VLookup too difficult.

  1. #1
    Registered User
    Join Date
    01-05-2016
    Location
    Texas, USA
    MS-Off Ver
    Office 365
    Posts
    13

    Rate Table Lookup. IF Statements or VLookup too difficult.

    Hello,

    I have the following issue and hopefully someone can help. I have a table for rating shipments based on mileage and weight. I need to see if there is an easier way to do this rather than using IF statements and VLOOKUPs.

    Example: I need to rate the following two shipments -

    Shipment 001 has a distance from origin to destination of 65 miles and a weight of 1250 lbs
    Shipment 002 has a distance from origin to destination of 175 miles and a weight of 600 lbs

    I need to pull the appropriate rate per lb from the from the following data set:

    Capture.jpg

    Thanks for your help!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Rate Table Lookup. IF Statements or VLookup too difficult.

    You will have a difficult time creating any solution to this they way your data is provided. I would suggest that in the rate columns you put a number representing the maximum weight for that rate, so it is a number. Currently you have strings, which are a lot of work to break out the numbers. So for example your columns starting in D would be labelled 499, 999, 1999, 4999, etc.

    If you do that, I have an idea of what the formula would be but I would rather test on your file first. Can you attach your actual file?

    I don't know what you find difficult about IF and VLOOKUP; this solution will involve using INDEX and MATCH, probably not any less difficult.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-05-2016
    Location
    Texas, USA
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Rate Table Lookup. IF Statements or VLookup too difficult.

    Thanks for your help. I edited the strings like you mentioned. Please find the attached file. Thanks again.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Rate Table Lookup. IF Statements or VLookup too difficult.

    I made another change to your rate sheet.

    This solution doesn't take into account your minimum and maximum per shipment. I wasn't completely sure how that worked.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-05-2016
    Location
    Texas, USA
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Rate Table Lookup. IF Statements or VLookup too difficult.

    Thank you very much 6StringJazzer. This worked flawlessly. I really appreciate your help.

+ 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. [SOLVED] World Cup Predictions Table - LOOKUP and IF statements
    By 3smees23 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-16-2014, 07:48 AM
  2. [SOLVED] vlookup on an html table; difficult
    By perducci in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 01:38 PM
  3. [SOLVED] How to lookup tax rate from a reference table?
    By icarrington in forum Excel General
    Replies: 4
    Last Post: 08-23-2012, 04:43 AM
  4. Replies: 2
    Last Post: 01-16-2012, 08:14 PM
  5. Replies: 5
    Last Post: 03-12-2009, 05:27 AM
  6. VLookup/IF Statements and Multiple Variable Lookup Not Working Correctly
    By gustafsoni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2007, 08:50 AM
  7. [SOLVED] Difficult Two Column Lookup
    By macshimi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-17-2006, 03:30 PM

Tags for this Thread

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