+ Reply to Thread
Results 1 to 5 of 5

Correlating data in 2 sheets. Vlookup, Match Index ?

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    Sliema, Malta
    MS-Off Ver
    2007
    Posts
    3

    Correlating data in 2 sheets. Vlookup, Match Index ?

    Dear All,

    This is my first post on this forum. I have racked my brains trying to come up with an adequate solution but I haven't been able to find one that works so far. My problem is as follows:

    I have a database which includes a list of people's names, surnames and I.D. numbers (in that order, in colums K, L and M respectively). These are on a sheet named "EMTP". These entries I just mentioned can be repeated in more than one row. On another sheet named "Patient List" I have the reference list of individual I.D. numbers, people's names and surnames, in columns A, B and C respectively, which I want to use as a reference.

    I somehow want to link the information in the reference list to the main information on the "EMTP" sheet in a way that will allow me to input the I.D. number only (in column M), and have the associated information (name and surname) pop up automatically in the adjacent cells in columns K and L, IF the patient is already in my "reference list". If nothing pops up, I will know it is a new one so I will need to be able to insert it into my reference list for future use.

    Below are what my sheets look like. I want to be able to input just the I.D. numbers into column M, so inputting 123M in column M would give me John in column K same row, and Doe in column N same row.

    "EMTP" sheet:
    K L M
    Name Surname I.D.

    "Patient List" sheet:
    A B C
    I.D. Name Surname
    123M John Doe
    555G Mary Wilkinson


    Would anyone be able to help me in writing this formula because I'm at my wit's end.

    Kindest Regards,
    Sindagon

  2. #2
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: Correlating data in 2 sheets. Vlookup, Match Index ?

    Assuming your headers are in row 1 and your data starts in row 2...

    In EMTP: K2...

    =INDEX('Patient List'!$B$2:$C$100,MATCH(EMTP!$M2,'Patient List'!$A$2:$A$100,0),MATCH(EMTP!$K1,'Patient List'!$B$1:$C$1,0))

    Then just drag that formula across to L2 and down to the bottom of your data table. Then when you enter the ID number in column M of the 'EMTP' sheet, the names will populate automatically.

  3. #3
    Registered User
    Join Date
    05-11-2016
    Location
    Sliema, Malta
    MS-Off Ver
    2007
    Posts
    3

    Re: Correlating data in 2 sheets. Vlookup, Match Index ?

    Hey jwillis07, thanks for your reply. Gonna try it now. I'll keep you posted.

  4. #4
    Registered User
    Join Date
    05-11-2016
    Location
    Sliema, Malta
    MS-Off Ver
    2007
    Posts
    3

    Re: Correlating data in 2 sheets. Vlookup, Match Index ?

    Ok, so, the data starts in row 5774. I'm unsure as to where I have to insert the row value. The reference table in the "Patient List" sheet goes from row 1 to row 10,000.

  5. #5
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: Correlating data in 2 sheets. Vlookup, Match Index ?

    So the patient list has headers in row 1 and data in rows 2-10,000?
    And the EMTP sheet has headers in row 5773 and data in rows 5774 onwards?

    =INDEX('Patient List'!$B$2:$C$10000,MATCH(EMTP!$M5774,'Patient List'!$A$2:$A$10000,0),MATCH(EMTP!$K5773,'Patient List'!$B$1:$C$1,0))

+ 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. Conditional Formatting - 2 sheets using Vlookup or Index/Match or SumProduct?
    By phrankndonna in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2016, 01:38 PM
  2. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  3. Vlookup or Index Match to check value across multiple sheets
    By HB07 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2015, 03:57 AM
  4. [SOLVED] Vlookup/Index/Match on multiple sheets data
    By yabi0823 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-30-2014, 03:47 PM
  5. [SOLVED] Excel 2007 - vlookup/index/match with two datasets on two sheets
    By deevusone in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2014, 04:47 PM
  6. Looking up data from two sheets with vlookup or index and match
    By joeycrak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 04:56 PM
  7. Index / Match / Vlookup Loop across 3 sheets
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2009, 03:27 AM

Tags for this Thread

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