Results 1 to 2 of 2

Compare columns between two sheets, if match, copy value of another column

Threaded View

  1. #1
    Registered User
    Join Date
    03-20-2018
    Location
    Singapore
    MS-Off Ver
    Office 365 Excel 2016
    Posts
    68

    Question Compare columns between two sheets, if match, copy value of another column

    Anyone have a solution for the following:

    I have one sheet with a list of names and another sheet with the RSVP response. The task is to compare the names and companies in both sheets, if there is a match, copy the value of the RSVP Status column.

    The order of rows in the names sheet is different from the RSVP sheet. Names in the first sheet may or may not have a corresponding name in the second sheet and vice versa.

    Name is stored as First Name and Last Name. We have to concatenate the names to compare because of some rows where the entire name is stored in the First Name column or the Last Name column.

    Comparing names:
    - Concatenation -- First name first, and then last name first (e.g. John Smith and Smith John) (2x)
    - Do this for both sheets and compare each permutation (2x)
    - Total 4 permutations (2x2)
    - Remove whitespace, ignore case

    Also, check if the company name matches to ensure that it is the same person

    If there is a match in the second sheet, copy the RSVP status in the matching row to the first sheet. Else if no match found, display X

    Account for variations in spelling of column names e.g. "First Name" or "FirstName", trim whitespace of columns, ignore case. Location and order of columns may vary. E.g. sometimes First Name is in Column B, sometimes in column E etc. First Name is not necessarily next to Last Name, RSVP Status is not necessarily in last column

    The solution should not have intermediate cell outputs, all information should be within a formula within the cell in their respective rows in the first sheet.

    Please see attached for sample file. Thanks
    Attached Files Attached Files
    Last edited by Cheesecube; 04-25-2019 at 12:09 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 09-13-2018, 09:34 AM
  2. How to compare columns in 2 sheets then delete if no match
    By needtoknowasu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2017, 12:13 AM
  3. Match 2 Columns in two sheets; copy an offset Column of matched Row to Sheet 1
    By sureng20 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-01-2017, 03:08 AM
  4. Replies: 1
    Last Post: 04-06-2017, 01:31 PM
  5. Replies: 7
    Last Post: 04-18-2016, 02:26 AM
  6. [SOLVED] Compare two columns and copy and paste data from a third column when a match is found
    By GatorsBucs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2013, 06:54 PM
  7. [SOLVED] Compare 2 pair of columns then copy value of third column over different sheets
    By a3des in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2012, 09:11 AM

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