+ Reply to Thread
Results 1 to 10 of 10

Lookup a value based on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Lookup a value based on multiple criteria

    Hello,

    I have a table which shows freight tariffs.
    For an item I want to find the correct tariff when looking at the size and the weight of the product

    In my example I have an article which is 14x10x1,5 in cm (lxwxh) with a weight of 480 gram.
    Looking at the length and width the tariff in row 2 would fit. But because of the height the tariff will bump to row 3.
    Then based on the weight row 8 is the one that fits all criteria. So I need to create some formula which looks at all criteria and picks the max row of one of the criteria which is the highest.
    Attached Files Attached Files
    Last edited by Gaellus; 07-29-2020 at 10:56 AM. Reason: solved

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Lookup a value based on multiple criteria

    Which version of Excel are you using?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Lookup a value based on multiple criteria

    Excel 2006
    Last edited by AliGW; 07-29-2020 at 07:54 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Lookup a value based on multiple criteria

    I don't think there was any such version - are you sure? Is it a Mac version?

    You are going to need to completely redesign your lookup table to get this lookup to work.

  5. #5
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Lookup a value based on multiple criteria

    Attachment 688924


    If redesigning is needed then redesign it is
    Last edited by AliGW; 07-29-2020 at 08:06 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Lookup a value based on multiple criteria

    It's not Office 2006 - it's Office 365!!! Please update your profile.

    Each of your lookup tables needs to start with a lookup value of 0, and the list needs to be in increasing order - you cannot do the weights as you currently have them set up.

    If you can create four separate lists for me in that format, I can tell you how then to create a formula.

  7. #7
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Lookup a value based on multiple criteria

    Not possible to get it in increasing order. Certain weights match certain packaging size. The whole makes up the costs.
    If i put the weight in in increasing order the sizes wont be in increasing order
    Last edited by AliGW; 07-29-2020 at 08:29 AM. Reason: Please don't quote unnecessarily!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Lookup a value based on multiple criteria

    Nothing is impossible! However, sometimes you have to make compromises.

    I dare say I could work through it for you and set something up that could work, but I don't have the time needed to invest in it today. Sorry.
    Last edited by AliGW; 07-29-2020 at 08:38 AM.

  9. #9
    Forum Contributor
    Join Date
    11-20-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Lookup a value based on multiple criteria

    fixed it myself
    based on the different criteria's I found the closest value in their corresponding column which gave me a row number.
    Then i overall looked at the highest row number which i then looked up for the cost.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Lookup a value based on multiple criteria

    Well done, however I wonder how you did it. As I said, lookups need lists in ascending order. Care to share your formula for the benefit of others?

+ 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] Lookup Based on Multiple Criteria
    By andrewc in forum Excel General
    Replies: 4
    Last Post: 09-25-2019, 03:27 PM
  2. [SOLVED] Lookup based on multiple criteria
    By Alexander Willey in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-02-2019, 12:22 PM
  3. [SOLVED] lookup multiple cells with corresponding multiple criteria based on one table
    By eligt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-12-2018, 06:02 AM
  4. [SOLVED] Lookup based on multiple criteria
    By lexusap in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2017, 10:09 PM
  5. Replies: 9
    Last Post: 08-20-2014, 04:43 PM
  6. [SOLVED] Lookup and sum multiple values based on a single criteria in multiple sheets.
    By paulsanett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2014, 12:18 PM
  7. Lookup based on multiple criteria
    By day92 in forum Excel General
    Replies: 3
    Last Post: 03-15-2011, 11:59 AM

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