+ Reply to Thread
Results 1 to 3 of 3

Lookup criteria matching in rows and columns

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Lookup criteria matching in rows and columns

    I have 2 worksheets, 1 containing a list of items and qty's needed and another showing which qty's are in stock. I need to know which items from sheet 1, show up in the matching qty column in sheet 2.

    See Example attached

    I need a formula in C2 of sheet 1 that looks at sheet 2 to find the matching item #, then looks at the column headers for the same # as the qty, if an "x" is in the same row as the item # I want to populate C2 of sheet 1 with a yes, if not a no. The important thing is that the Qty in the header of sheet 2 must match exacly, not just be equal to or greater than.

    I'm stuck, thanks in advance.

    JuJuBe
    Attached Files Attached Files
    Last edited by NBVC; 05-20-2010 at 08:38 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup criteria matching in rows and columns

    Try:

    =IF(SUMPRODUCT((Sheet2!$A$2:$A$20=A2)*(Sheet2!$B$1:$G$1=B2)*(Sheet2!$B$2:$G$20="x")),"Yes","No")

    this will also put a "No" if the items are not matched at all in the table.

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Lookup criteria matching in rows and columns

    GENIUS!!! Thank you SO much!

    JuJuBe

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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