+ Reply to Thread
Results 1 to 5 of 5

Need to Match 2 pieces of data and return a third

  1. #1
    Registered User
    Join Date
    12-06-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need to Match 2 pieces of data and return a third

    I have two spreadsheets both of which contain patient data each from a different system. I would like to match the value in Columns 1 & 2 (Date and Patient Name) on sheet 1 to the values in columns 1 & 2 on sheet 2 (I need both pieces to match because there are multiple patient entries for each date and each patient was seen on multiple dates) then return the value in column 6 on Sheet 2. Is there a way to get excel to do this? I've tried and it seems like all I can accomplish is excel telling me that most of the time the corresponding row doesn't match up from sheet 1 to sheet 2.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Need to Match 2 pieces of data and return a third

    You can concatenate columns 1 & 2 on both sheets to give you distinct values, then do a vlookup on the distinct values to return other values.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-06-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to Match 2 pieces of data and return a third

    Thanks! not sure why I didn't think of that since I already had to do it with lastname and firstname.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Need to Match 2 pieces of data and return a third

    Glad that helped and thanks for the rep points.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Need to Match 2 pieces of data and return a third

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Looking up several pieces of data
    By darylpaskell in forum Excel General
    Replies: 0
    Last Post: 10-16-2013, 11:50 AM
  2. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  3. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  4. Are these 2 pieces of sorting code return the same result?
    By shinichi_nguyen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2012, 01:36 PM
  5. Replies: 4
    Last Post: 07-07-2010, 12:36 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