+ Reply to Thread
Results 1 to 4 of 4

Returning a lookup value based on multiple criteria.

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Granada Hills, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Returning a lookup value based on multiple criteria.

    I need help finding a way to take the following information in excel and do a lookup (was trying to use index and match with if condition but was unsucessful)

    The following line is the type of information I am trying to use to perform the lookup using the part number and s/n I am attempting to look up the shipment date from a list of shipments and choose the ship date prior to the return that is closest to the return date and if the ship date is not prior to the return date, return no value or false, etc. I also have many part numbers some with same s/n's and need to confirm part # and s/n match as well.
    (In this example I am attempting to return the ship date of 1/12/2006 and need this done without having to reorder the list or have the result based on order alone. Any help appreciated. Thanks

    Ret.Date Part # S/N
    4/8/2011 SP-Intermittent or No Lock 03-29-2010 190085 CI-5230-100 1230

    Part # S/n Ship Date
    CI-5230-100 1230 11/1/2011
    CI-5230-100 1230 9/23/2005
    CI-5230-100 1230 1/12/2006

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Returning a lookup value based on multiple criteria.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Granada Hills, CA, USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Returning a lookup value based on multiple criteria.

    See attached sample file, please

    QUOTE=ahunter488;2541086]I need help finding a way to take the following information in excel and do a lookup (was trying to use index and match with if condition but was unsucessful)

    The following line is the type of information I am trying to use to perform the lookup using the part number and s/n I am attempting to look up the shipment date from a list of shipments and choose the ship date prior to the return that is closest to the return date and if the ship date is not prior to the return date, return no value or false, etc. I also have many part numbers some with same s/n's and need to confirm part # and s/n match as well.
    (In this example I am attempting to return the ship date of 1/12/2006 and need this done without having to reorder the list or have the result based on order alone. Any help appreciated. Thanks

    Ret.Date Part # S/N
    4/8/2011 SP-Intermittent or No Lock 03-29-2010 190085 CI-5230-100 1230

    Part # S/n Ship Date
    CI-5230-100 1230 11/1/2011
    CI-5230-100 1230 9/23/2005
    CI-5230-100 1230 1/12/2006[/QUOTE]
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Returning a lookup value based on multiple criteria.

    Hello, Try

    H2, copy down.

    =MAX(IF('Ship Data'!$B$2:$B$35=F2,IF('Ship Data'!$C$2:$C$35<=G2,'Ship Data'!$C$2:$C$35)))

    Array Formula, with CONTROL+SHIFT+ENTER.
    Last edited by Haseeb Avarakkan; 06-09-2011 at 03:02 AM. Reason: Adjust the paratheses
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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