+ Reply to Thread
Results 1 to 13 of 13

lookup meeting two criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    lookup meeting two criteria

    in the attached workbook I need a formula to match a value from column A (one) and a value from column B (two) and return value in column D (four). Values are listed in A2:B2 with returned value in C2.
    Any help is appreciated.
    Sick
    Attached Files Attached Files

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

    Re: lookup meeting two criteria

    =INDEX(D7:D22,MATCH(A2&B2,A7:A22&B7:B22,0))
    Confirmed with CTRL+SHIFT+ENTER as an array formula.
    Spread the love, add to the Rep

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

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: lookup meeting two criteria

    Hi,

    Often (as here) it's just simpler to use a helper column (which you can hide if you wish)

    See attached
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: lookup meeting two criteria

    I'm trying your first response but get a #value! reply. I'm entering as an array. Suggestions?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: lookup meeting two criteria

    Quote Originally Posted by sick stigma View Post
    I'm trying your first response but get a #value! reply. I'm entering as an array. Suggestions?
    To whom is that addressed?

  6. #6
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: lookup meeting two criteria

    sorry, mcmahobt

  7. #7
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: lookup meeting two criteria

    Here is the actual workbook. I've cleared all sensitive information. The array is N66:S138. Value cells are C11&D11. Target cell is J11.
    Suggestions?
    Sick
    Attached Files Attached Files

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

    Re: lookup meeting two criteria

    Weird, I'm not seeing a value error if it is indeed entered as an array. See attached for implemented solution.
    Attached Files Attached Files

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

    Re: lookup meeting two criteria

    Yeah, this is much different than the sample you provided. Which column from your array houses the data you wish to populate J11?

  10. #10
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: lookup meeting two criteria

    Column R.
    S in another cell down the road.
    Sick

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

    Re: lookup meeting two criteria

    I'm assuming C11 and D11 correspond to columns O and A respectively in your array. If that is the case, there is no Item 1 Promo J match. This formula should still work for other combinations that do appear however:

    =INDEX($R$66:$R$138,MATCH(C11&D11,$O$66:$O$138&$P$66:$P$138,0))
    again, entered as an array with CSE.

  12. #12
    Forum Contributor
    Join Date
    06-20-2007
    Location
    Buckeye, AZ
    MS-Off Ver
    365
    Posts
    272

    Re: lookup meeting two criteria

    Nope. #value!. Does a specific column in the arrary have to be sorted?

  13. #13
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,299

    Re: lookup meeting two criteria

    I propose another formula.
    Formula: copy to clipboard
    =LOOKUP(2;1/(A6:D6=A1)/(A7:A22=A2)*(A6:D6=B1)/(B7:B22=B2)*(A6:D6=C1);D7:D21)

+ 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] Sumproduct meeting two Criteria
    By philip.michael.smith in forum Excel General
    Replies: 3
    Last Post: 06-20-2014, 08:52 PM
  2. Lookup/match in multiple columns meeting criteria
    By ranmyaku in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-03-2013, 04:36 PM
  3. Sum cells in a row meeting criteria
    By Murrayk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 01:51 AM
  4. Replies: 6
    Last Post: 06-10-2012, 11:13 PM
  5. lookup and count if meeting criteria
    By reghu in forum Excel General
    Replies: 6
    Last Post: 09-09-2010, 07:41 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