+ Reply to Thread
Results 1 to 7 of 7

Look up value in linear list based on two criteria

  1. #1
    Registered User
    Join Date
    02-25-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    3

    Look up value in linear list based on two criteria

    I won't waffle on to much about the back story but the crux of the issue is I have a a selection of products

    These products have a number of performance related parameters

    There are ten products

    Each product has a capacity range at at a particular capacity there is an associated loss, the capacities and losses are totally different for each product

    I want to be able to select a product

    Input a capacity which would then populate a field with the closest loss relavant to that product only


    So for example

    Product 1
    Capacity 1
    Loss 2
    Capacity 2
    Loss 4
    Capacity 3
    Loss 6
    Capacity 4
    Loss 8
    Capacity 5
    Loss 10

    Product 2
    Capacity 2
    Loss 3
    Capacity 3
    Loss 6
    Capacity 4
    Loss 9
    Capacity 5
    Loss 12
    Capacity 6
    Loss 15

    Product 3
    Capacity 3
    Loss 4
    Capacity 4
    Loss 8
    Capacity 5
    Loss 12
    Capacity 6
    Loss 16
    Capacity 7
    Loss 18

    Etc

    I need to be able to select Product 1, input capacity 2 and get loss 4, but if I change to product 2 the loss would ultimately change.

    There's I also other simpler data associated to each product that I can auto populate with vlook

    But this one has me stumped

    I hope that makes sense
    Last edited by 6StringJazzer; 02-25-2021 at 02:27 PM. Reason: better title

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: Look up value in linear list based on two criteria

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-25-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    3

    Re: Look up value in linear list based on two criteria

    Many thanks Glenn

    A simple sample of what I'm trying to achieve is (hopefully) now attached
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: Look up value in linear list based on two criteria

    It's not labelled!! Which is the raw data? Where are the inpts? Where are the desired outputs?

  5. #5
    Registered User
    Join Date
    02-25-2021
    Location
    UK
    MS-Off Ver
    365
    Posts
    3

    Re: Look up value in linear list based on two criteria

    Apologies Glenn.

    I think I've now added annotations that should identify the relevant components
    Attached Files Attached Files

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

    Re: Look up value in linear list based on two criteria

    Thanks for providing your sample file. It's totally different that what you showed in your first post.

    Try this formula in B17:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,895

    Re: Look up value in linear list based on two criteria

    This will also give you the next lowest loss if the capacity doesn't equal the list:

    =INDEX(INDEX(A23:H27,,MATCH($B$11,$A$21:$H$21,0)+1),MATCH($B$16,INDEX(A23:H27,,MATCH($B$11,$A$21:$H$21,0)),1))

+ 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. =$A$1:$A$12 Explain?
    By brucemc in forum Excel General
    Replies: 7
    Last Post: 09-06-2009, 10:19 PM
  2. [SOLVED] Can Anyone Explain This?
    By Paul Smith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2005, 04:05 PM
  3. Let me see if I can explain this...
    By jsc3489 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Let me see if I can explain this...
    By jsc3489 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] Let me see if I can explain this...
    By jsc3489 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  6. Let me see if I can explain this...
    By jsc3489 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. Let me see if I can explain this...
    By jsc3489 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Let me see if I can explain this...
    By jsc3489 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-22-2005, 12:05 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