Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
usmleboy
 
Posts: n/a
Default How can I match two spreadsheets by patients ID?

Hi there,

This question is torchering me many days:
I have two spreadsheets for the same patients. However these tables are
different but complementary to each other. Both spreadsheets have unique
Clinical Number.
Is it possible to match the information from these two tables by Clinical
number?

Ex:
Spreadsheet_1
ID Sample name Diagnosis Notes
123 RA234 ST RA Not for patient
456 RA456 TA GCA TA biopsy positive

Spreadsheet_2
ID Date of Birth Sampling Date Investigator Treatment
123 10/01/1960 10/10/2005 John Snow N/A
456 10/01/1955 N/A ----- -----

Thanks in advance
Daniel



  #2   Report Post  
Posted to microsoft.public.excel.misc
Jay
 
Posts: n/a
Default How can I match two spreadsheets by patients ID?

I have two spreadsheets for the same patients. However these tables
are different but complementary to each other. Both spreadsheets have
unique Clinical Number.
Is it possible to match the information from these two tables by
Clinical number?

Ex:
Spreadsheet_1
ID Sample name Diagnosis Notes
123 RA234 ST RA Not for patient
456 RA456 TA GCA TA biopsy positive

Spreadsheet_2
ID Date of Birth Sampling Date Investigator Treatment
123 10/01/1960 10/10/2005 John Snow N/A
456 10/01/1955 N/A ----- -----


One way is to use VLOOKUP. For example, Spreadsheet_1 could have a fifth
column for "Date of Birth". In that column, the VLOOKUP function would pull
the value from Spreadsheet_2 by matching the ID.

There might be a third spreadsheet that pulls values from the first two in
a similar way.

Excel has built-in Help describing how to use VLOOKUP.
  #3   Report Post  
Posted to microsoft.public.excel.misc
Jeroen
 
Posts: n/a
Default How can I match two spreadsheets by patients ID?

Daniel,

You can use the VLookup function to do this.
e.g. in spreadsheet_1 you add a 'date of birth' column next to the 'notes'
column
The formula for the first cell (ID 123) looks like this
=VLookup(A2,'[Spreadsheet_2]Sheet1'!$A:$E,2,false)
the function should look up ID 123 in column A of spreadsheet_2 (sheet1 if
that is where your data is), and then retrieve the value from the second
column of column range A:E if it matches exactly (false).

You can also lookup vlookup in the help funcion for more information.

--
Jeroen van Nieuwkerk




"usmleboy" wrote:

Hi there,

This question is torchering me many days:
I have two spreadsheets for the same patients. However these tables are
different but complementary to each other. Both spreadsheets have unique
Clinical Number.
Is it possible to match the information from these two tables by Clinical
number?

Ex:
Spreadsheet_1
ID Sample name Diagnosis Notes
123 RA234 ST RA Not for patient
456 RA456 TA GCA TA biopsy positive

Spreadsheet_2
ID Date of Birth Sampling Date Investigator Treatment
123 10/01/1960 10/10/2005 John Snow N/A
456 10/01/1955 N/A ----- -----

Thanks in advance
Daniel



  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave O
 
Posts: n/a
Default How can I match two spreadsheets by patients ID?

Yes- use the Clinical Number as the argument in a VLOOKUP() function to
pull data from one data into the other.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need funct to match data in 3 seperate spreadsheets column 1 to v. lucky Excel Discussion (Misc queries) 2 February 8th 05 07:33 PM
using vlookup - how do I match 2 spreadsheets w/o same exact numb. klondike47 Excel Worksheet Functions 1 February 5th 05 11:01 PM
match two spreadsheets Socialism Excel Worksheet Functions 1 December 10th 04 05:59 AM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 09:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"