+ Reply to Thread
Results 1 to 4 of 4

LOOKUP function

  1. #1
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520

    LOOKUP function

    Hello,

    Good Day...

    If someone could help me with my problem.

    I have this data on my worksheet, example; (please note: date format = dd/mm/yyyy)

    Sheet 1
    ID Number.......Date
    10897.............01/01/2011
    10896.............01/02/2011
    10895.............01/02/2011
    10896.............01/02/2011
    10897.............01/04/2011

    And in another sheet, i have to enter in a cell an ID number, adjacent to that cell should show the latest date that corresponds to that particular ID number in sheet 1, like for example;

    Sheet 2
    ID Number.......Date
    10897............01/04/2011

    Im using a vlookup formula, but the data i have from sheet 1 contains an ID numbers that may appear multiple times. vlookup searches for the first match it sees and does not display the latest date from that particulat ID number.

    I hope you can help me.

    Thanks.
    Corine
    Corine

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: LOOKUP function

    Here.. Solutions for latest and greatest date..

    (If your table is sorted then you can use just first solution)
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP function

    Hi

    If range of your Data is Sheet1 A2:B6, then in Sheet2, let's say in E2, put the ID number 10897.

    Then you can use this formula:

    =IF(Sheet1!A2:A6=Sheet2!E2;MAX(Sheet1!B2:B6);"")

    The result is 01/04/2011

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520

    Re: LOOKUP function

    Hello,

    Thank you guys, both formula is working perfect!

    Thanks again.
    Corine

+ 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