Trying to match two columns! Very difficult! Expert Needed!

nrgmechanics

New Member
Joined
Apr 19, 2012
Messages
10
I need major help!!!!! I work in the medical field and deal with patient testing. I basically print out an entire patient database from two separate systems base on PDF files.I compare the two lists and make sure they match. I’ve tried my own and other suggested formulas and macros, but they conflict with each other or don’t work.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
List #1, This is the first list.
<o:p></o:p>
10122266 Stark, Tony | R9-1, R9-2, R9-3, ALB_ELC, ALPHA_1, ALPHA_2, BETA_ELE, GAMMA_EL,
( 4/19/2012#2284) | R6-1, R6-2, R6-3, R533, R535, R534, R2747, R2748, IFE_PAR, IFE_INTE, R14, R30,
| R1-1, R1-2
-----------------------------------------|-------------------------------------------------------------
10122268 Rogers, Steve| R6-1, R6-2, R6-3, R533, R535, R534, R2747, R2748, R14, R30, R1-1, R1-2,
( 4/19/2012#2284) | IFE_PAR, IFE_INTE
-----------------------------------------|-------------------------------------------------------------
12102269 Banner, Bruce | D1, D2, E1, E5, G2, G6, G10, I6, M1, M2, M3, M6, T2, T6, T7, T8, T9, T10
( 4/20/2012#716) |
-----------------------------------------|-------------------------------------------------------------
<o:p></o:p>
This is the raw data from the PDF file that I copy and paste into Excel, this is exactly how it looks. When I paste it, it all falls into one column. There are three patients with a series of "test codes" behind. If there are alot of codes at the end of the page, it will drop and continue down on the next line. This is only an example of three, but I get a list of over 2000 patients. The amount of test codes is always random, some can be one test code and other can be 50 test codes.
<o:p></o:p>
For Tony Stark, there are so many codes that it is on 3 rows.
For Stever Rogers, the codes are long enough to 2 rows.
and Bruce Banner is only on the 1 row.
<o:p></o:p>
List #2, The second list from the other PDF file.
<o:p></o:p>
11 Acc: 10122266 Name: STARK, TONY
DoS: 4/19/2012Rec: 4/19/2012 Tests
GAMMA_EL, R514-2, R9-2, R990, R1380, R20, R730, R1333,
R9-1, R9-2, R9-3, ALB_ELC, ALPHA_1, ALPHA_2, BETA_ELE,
IFE_PAR, IFE_INTE, R14, R30, R1-1, R1-2, R2747, R2748,
R726, R6-1, R6-2, R6-3, R533, R535, R534
11 Acc: 10122268 Name: ROGERS, STEVE
DoS: 4/19/2012 Rec: 4/19/2012
Tests
R30, R1-1, R1-2, IFE_PAR, IFE_INTE, R2747, R2748, R14,
R6-1, R6-2, R6-3, R533, R535, R534
11 Acc: 12102269 Name: BANNER, BRUCE
DoS: 4/20/2012 Rec: 4/20/2012
Tests
G10, I6, M1, M2, M3, M6, T2, D1, D2, E1, E5, G2, G6,
T6, T7, T8, T9, T10
<o:p></o:p>
This is where I get stuck. When all the information gets pasted into excel from the PDF file, it’s just horrible. Also, the tests are always jumbled into a different order. Have to keep that in mind.
<o:p></o:p>
I need List #1 & #2 to be broken by Patient number and the test codes. All of List#1 into a column and List #2 into another column and match by patient number, if all the codes match.
<o:p></o:p>
10122266 R9-1, R9-2, R9-3, ALB_ELC, ALPHA_1, ALPHA_2, BETA_ELE, GAMMA_EL, R6-1, R6-2, R6-3, R533, R535, R534, R2747, R2748, IFE_PAR, IFE_INTE, R14, R30, R1-1, R1-2
10122268 R6-1, R6-2, R6-3, R533, R535, R534, R2747, R2748, R14, R30, R1-1, R1-2, IFE_PAR, IFE_INTE
10122269 D1, D2, E1, E5, G2, G6, G10, I6, M1, M2, M3, M6, T2, T6, T7, T8, T9, T10
<o:p></o:p>
I’ve tried to do this in three steps. Simplify List 1, Simplify List 2 and then match, If no match, highlight unmatched.
<o:p></o:p>
Maybe you can come up with another approach. Please help, I still do this the old fashion way by printing both lists out and comparing. My eyes hurt after 3 hours!!! There has to be another way. Any extra time I get I try to work on this excel form, but I can’t figure it out L
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I almost have a working Macro for List#1 and I think i got a working marco for the matching. Can anyone help me with List#2?

11 Acc: 10122266 Name: STARK, TONY
DoS: 4/19/2012Rec: 4/19/2012 Tests
GAMMA_EL, R514-2, R9-2, R990, R1380, R20, R730, R1333,
R9-1, R9-2, R9-3, ALB_ELC, ALPHA_1, ALPHA_2, BETA_ELE,
IFE_PAR, IFE_INTE, R14, R30, R1-1, R1-2, R2747, R2748,
R726, R6-1, R6-2, R6-3, R533, R535, R534
11 Acc: 10122268 Name: ROGERS, STEVE
DoS: 4/19/2012 Rec: 4/19/2012
Tests
R30, R1-1, R1-2, IFE_PAR, IFE_INTE, R2747, R2748, R14,
R6-1, R6-2, R6-3, R533, R535, R534
11 Acc: 12102269 Name: BANNER, BRUCE
DoS: 4/20/2012 Rec: 4/20/2012
Tests
G10, I6, M1, M2, M3, M6, T2, D1, D2, E1, E5, G2, G6,
T6, T7, T8, T9, T10


into this:
10122266 R9-1, R9-2, R9-3, ALB_ELC, ALPHA_1, ALPHA_2, BETA_ELE, GAMMA_EL, R6-1, R6-2, R6-3, R533, R535, R534, R2747, R2748, IFE_PAR, IFE_INTE, R14, R30, R1-1, R1-2
10122268 R6-1, R6-2, R6-3, R533, R535, R534, R2747, R2748, R14, R30, R1-1, R1-2, IFE_PAR, IFE_INTE
10122269 D1, D2, E1, E5, G2, G6, G10, I6, M1, M2, M3, M6, T2, T6, T7, T8, T9, T10
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top