Consulting

Results 1 to 2 of 2

Thread: Compare 3 Columns and Return all Matches

  1. #1

    Exclamation Compare 3 Columns and Return all Matches

    Hi,

    I need to fill in the empty/missing values in Column P (sheet1). These values are to be found in Sheet2 Column A through the following procedure:

    - Compare the data in the 3 columns of Sheet1 (E, F and H) with the data in the 3 Columns of Sheet2 (E,H, and F) respectively.
    - If all the 3 columns match each other (E=E, F=H and H=F) then copy the value from the respective row cell in Column A Sheet2 and paste it to the respective row cell in Column P Sheet1.
    - In case of multiple matches, all the matching values found in Column A Sheet2 should be pasted in Column P Sheet1 separated by a comma.

    I hope you can help me with this. Either via VB Code (macro) or an Excel procedure.

    Thank You,
    JN

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •