• 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.

compare two worksheets and merge a column

jlclouse

New Member
I am comparing two worksheets where there is a list of user names. I want to compare and match user names. Where there is an exact match I want to pull in the corresponding password.
 
Something like this should do the trick:

=IF(ISNUMBER(MATCH(Name,ListOfNames,0)),VLOOKUP(Name,ListOfNamesAndPassword,2,FALSE),"No Match")


Note that I'm assuming the passwords are in the 2nd column. If this is not the case, adjust the 3rd argument in the VLOOKUP function.
 
Hi, jlclouse!


Additionaly to what Luke M posted, I'd suggest -if passwords can't be blank- to change the constant "No Match" to "", just in case there's a "No Match" real password. Or leave as it is, but conditional format for UserID that doesn't exist.

Yes, sounds a little paranoic, but... users are so creative!


Regards!
 
Back
Top