• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How vlookup responds if it finds a duplicate value?

dvm49

Member
I have two sheets (Data1 & Data2) and wanted to do a lookup on ID in Data1 against ID,Role in Data2. Data2 contains a duplicate ID with different roles. In this case, the vlookup that returns the value will be not relevant ?
 

Attachments

  • Vlookup.xlsx
    11.9 KB · Views: 6
HI,YOU can add iferror to your formula ...it will be
Code:
=IFERROR(VLOOKUP(B2,Array_Data2,2,FALSE),"")
 

Attachments

  • Vlookup1.xlsx
    17.3 KB · Views: 4
Vlookup will return the first value it finds that matches. What do you want to happen if there are duplicates?
 
Back
Top