+ Reply to Thread
Results 1 to 7 of 7

Unable to retrieve an item from a list that meets multiple criteria

  1. #1
    Registered User
    Join Date
    03-19-2015
    Location
    Carmel, Indiana
    MS-Off Ver
    10
    Posts
    11

    Unable to retrieve an item from a list that meets multiple criteria

    I’m attempting to create a formula where I’m matching two different criteria and returning a value. The one criteria is a SKU number and the other is a tier of values based on the quantity of a particular SKU. Here’s the formula I’m using, but it’s not returning the correct value. {=INDEX($P$2:$P$1486,MATCH(S1&U1,$B$2:$B$1486&$E$2:$E$1486,1))}. Cell S1 is the SKU lookup value and U1 is the quantity lookup value. Column “P” provides the value based on the SKU # and the quantity ordered. Column "B" is a list of SKU's and column "E" are the various tiers, e.g. 1-500, 501- 1000, etc. Thank you for your help.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Unable to retrieve an item from a list that meets multiple criteria

    Since this is an array formula, did you enter it using CTRL+SHIFT+ENTER? I know you have the brackets around your formula, but typing the brackets doesn't turn the formula into an array formula. Confirming with CSE does.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    03-19-2015
    Location
    Carmel, Indiana
    MS-Off Ver
    10
    Posts
    11

    Re: Unable to retrieve an item from a list that meets multiple criteria

    Yes, I did enter it using CTRL + SHIFT + ENTER

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Unable to retrieve an item from a list that meets multiple criteria

    Then by the looks of it, I'd bet it's the tiers that is throwing off your results. However, without a sample workbook there's not much I can say beyond that.

  5. #5
    Registered User
    Join Date
    03-19-2015
    Location
    Carmel, Indiana
    MS-Off Ver
    10
    Posts
    11

    Re: Unable to retrieve an item from a list that meets multiple criteria

    I'm sure you're right about the tiers. Is there anyway around this problem? I'm attaching a sample of the date I'm using.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Unable to retrieve an item from a list that meets multiple criteria

    Try this instead, also entered as an array.

    Make sure that your value stored in M4 is also being stored as a number, not as text.

    =INDEX($H$2:$H$1486,SMALL(IF(--(($A$2:$A$1486=K4)*(M4>=$B$2:$B$1486)*(M4<$C$2:$C$1486)),ROW($H$2:$H$1486)-1),ROWS($1:1)))

  7. #7
    Registered User
    Join Date
    03-19-2015
    Location
    Carmel, Indiana
    MS-Off Ver
    10
    Posts
    11

    Re: Unable to retrieve an item from a list that meets multiple criteria

    This worked beautifully. Thanks so much for 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. Retrieve the the value from list that meets criteria
    By ABSTRAKTUS in forum Excel General
    Replies: 12
    Last Post: 04-17-2011, 06:02 PM
  2. problem with tip "Retrieving an Item from a List that Meets Multiple Criteria"
    By filoberto in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 1
    Last Post: 02-25-2006, 08:15 PM
  3. Retrieving an Item from a List that Meets Multiple Criteria
    By hgopp99 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2006, 11:10 AM
  4. Retrieving an Item from a List that Meets Multiple Criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 03:00 AM
  5. Retrieving an Item from a List that Meets Multiple Criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 02:59 AM

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