Solved

Matching cells in 2 Excel spreadsheets

Posted on 2011-09-17
2
420 Views
Last Modified: 2012-05-12
I have 2 excel spreadsheets that have the same patient names. In the spreadsheet called “ClarityScheduling_CTRC_Formatted” Column H which is the “StudyID” field is blank and I want to update that column from column C “Study ID” field of the other spreadsheet called “Clarity-CTRC Combination “ by matching the patient name and the date of Appointment together and then copying and pasting the corresponding “Study ID” from column C of the “Clarity-CTRC Combination.xls “ to column H of “ClarityScheduling_CTRC_Formatted.xls”  I have done a couple of examples high light for you to see what I am trying to accomplish with 1173 records. The question is how can I accomplish copy and pasting the correct study IDs to the other spreadsheet.  Attached are the 2 excel spreadsheets. Thanks in advance.
Clarity-CTRC-Combination.xlsx
ClarityScheduling-CTRC-Formatted.xlsx
0
Comment
Question by:Chrisjack001
2 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 36555572
Hello,

with both workbooks open, enter this formula into cell H2 of the target workbook

=INDEX('[Clarity-CTRC-Combination.xlsx]Combination'!$C$2:$C$1175,MATCH(B2&D2,INDEX('[Clarity-CTRC-Combination.xlsx]Combination'!$A$2:$A$1175&'[Clarity-CTRC-Combination.xlsx]Combination'!$B$2:$B$1175,0),0))

Copy down.

Some cells will show "#N/A" because the combination of name and date is not found in the source file.

To show something other than N/A for these cells, wrap the formula in IFERROR, like this

=IFERROR(INDEX('[Clarity-CTRC-Combination.xlsx]Combination'!$C$2:$C$1175,MATCH(B2&D2,INDEX('[Clarity-CTRC-Combination.xlsx]Combination'!$A$2:$A$1175&'[Clarity-CTRC-Combination.xlsx]Combination'!$B$2:$B$1175,0),0)),"not found")

cheers, teylyn
0
 

Author Closing Comment

by:Chrisjack001
ID: 36555596
Thanks a lot for your prompt help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now