+ Reply to Thread
Results 1 to 5 of 5

Need help with vlookup in duplicate values

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Exclamation Need help with vlookup in duplicate values

    Hi all,

    I am working with an excel file with multiple duplicate values for the columns "Reference". While using the lookup function, I want to return the "Remarks" against each "Reference" for the most recent "Date". See data below.

    Date Reference Remarks
    1-Jan abc Test 1
    1-Jan bcd Test 2
    3-Jan def Test 3
    2-Jan abc Test 4
    1-Jan bcd asd
    3-Jan abc faf

    If I use the standard lookup function, the output will be as below:

    Reference Remarks
    abc Test 1
    bcd Test 2
    def Test 3

    However I need the following output:
    Reference Remarks
    abc faf
    bcd asd
    def Test 3

    Let me know how this can be done.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need help with vlookup in duplicate values

    Hi vivshan,

    welcome to the forum.

    How you are taking remarks as "asd" for reference "bcd" out of below data as both are 1st Jan ?

    1-Jan bcd Test 2
    1-Jan bcd asd

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-09-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need help with vlookup in duplicate values

    Sorry, my bad. Here is the corrected data:

    Date Reference Remarks
    1-Jan abc Test 1
    1-Jan bcd Test 2
    3-Jan def Test 3
    2-Jan abc Test 4
    2-Jan bcd asd
    3-Jan abc faf

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help with vlookup in duplicate values

    PL see attached file with formula.
    Attached Files Attached Files

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Need help with vlookup in duplicate values

    Hi vivshan,

    Below formula will work if a max date appears anywhere in column

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    vlookup in duplicate values ANS.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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