Hello. I have two data files. File A contains some company names and File B is the full list of company names. The variables are following below. File A: ID, Name File B: Name1, Name2, Name3 (3 names are for the same company but different expression. For example, Name1 = IBM and Name 2 = International Business Machines) What I want is to search names from File A in File B. If names in File A can match one of the names in File B, then a new variable called NewName is created in File A and NewNames equals to Name1 from File B. Can anyone tell me what code I need to use? Thanks. For example File A ID Name 01 IBM 02 Apple File B Name1 Name 2 Name 3 International Business Machines IBM IBM Corp. Apple Apple Inc. AAPL Google LLC GOOGL Google Expected File ID Name NewName (equal to Name1) 01 IBM International Business Machines 02 Apple Apple
... View more