lizsunnysideup
New Member
- Joined
- Jun 29, 2019
- Messages
- 36
Hello there. I was given a task that has 40k rows of member data and drugs. Column D has member ID numbers but the report includes duplicate member who have filled different medications so the report looks like this:
Column D Column O
0001 VIAGRA 50MG
0001 LISINOPRIL 10MG
0001 VIAGRA 50MG
0001 SEVERVENT INHALER
0002 FINASTERIDE 5MG
0003 ELIQUIS 10MG
0003 LISINIOPRIL 20MG
How do I remove the duplicates from Column D and O AND how do I go from listing each individual drug for people that filled more than 1 drug horizontally in Column P, Q, R, etc with each drug moving to the next column to the right? So for instance:
Column D Column O Column P Column Q
0001 VIAGRA 50MG LISINORPIL 10MG SEREVENT INHALER
0002 FINASTERIDE 5MG
0003 ELIQUIS 10MG LISINOPRIL 20MG
Column D Column O
0001 VIAGRA 50MG
0001 LISINOPRIL 10MG
0001 VIAGRA 50MG
0001 SEVERVENT INHALER
0002 FINASTERIDE 5MG
0003 ELIQUIS 10MG
0003 LISINIOPRIL 20MG
How do I remove the duplicates from Column D and O AND how do I go from listing each individual drug for people that filled more than 1 drug horizontally in Column P, Q, R, etc with each drug moving to the next column to the right? So for instance:
Column D Column O Column P Column Q
0001 VIAGRA 50MG LISINORPIL 10MG SEREVENT INHALER
0002 FINASTERIDE 5MG
0003 ELIQUIS 10MG LISINOPRIL 20MG