+ Reply to Thread
Results 1 to 3 of 3

LOOKUP function for multiple criteria

  1. #1
    Registered User
    Join Date
    09-11-2017
    Location
    Thunder Bay, Canada
    MS-Off Ver
    2010
    Posts
    2

    LOOKUP function for multiple criteria

    I have tried many different formulas to make this work, and this is the closest one I have come across, but I am still having issues

    =LOOKUP(2,1/('Master PO Schedule'!$C$26:E$67=A4),'Master PO Schedule'!$A$26:$A$67)

    What I am trying to do is find cell A4 value on the Master PO Schedule (they are in random order, all throughout the range specified), and then return the row header from the Master PO Schedule (Column A - date). This works for items that are populated in Column C, anything that has been populated in Column D or E gives me back #N/A. If I change the formula when looking for the value of A5, which has been populated in Column D, to =LOOKUP(2,1/('Master PO Schedule'!$D$26:E$67=A5),'Master PO Schedule'!$A$26:$A$67) I get the value I require.

    I have several hundred values that need to be looked up in this manner, and I need to know the date that they have been scheduled without changing the formula on every line depending on whatever row that they appear. Is there a way to add an IF, AND, OR function, to look up all three rows at the same time? And return the result (date) under which it is found?

    I have tried INDEX & MATCH, a VLOOKUP, I have the data horizontal, and well as vertical, and I always get stuck at this point.
    Attached Images Attached Images
    Last edited by dandosa; 09-11-2017 at 11:54 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: LOOKUP function for multiple criteria

    Array-enter (enter using Ctrl-Shift-Enter)

    =IFERROR(INDEX('Master PO Schedule'!$A:$A,SMALL(IF('Master PO Schedule'!$C$26:$E$67=A4,ROW('Master PO Schedule'!$C$26:$E$67)),1)),"")
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    09-11-2017
    Location
    Thunder Bay, Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: LOOKUP function for multiple criteria

    Thanks Bernie! It works like a charm

+ 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. Lookup function with multiple criteria
    By xrajncajnx in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-03-2015, 03:28 PM
  2. [SOLVED] Lookup Function with Multiple Criteria Including Values Between Two Dates
    By webfeet2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2014, 12:01 PM
  3. Lookup or match function with multiple criteria giving different results
    By Mian USman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2013, 09:15 AM
  4. In need of a lookup function that meets multiple criteria
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2013, 07:16 PM
  5. Multiple criteria lookup function
    By daniel_ev in forum Excel General
    Replies: 2
    Last Post: 07-02-2012, 08:05 AM
  6. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  7. use IF/Lookup function in multiple criteria
    By harboens in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2009, 03:50 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