+ Reply to Thread
Results 1 to 8 of 8

Multiple lines of similar data to one single line

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    Chesterfield, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Multiple lines of similar data to one single line

    All,

    I have multiple lines of data (patient data), where the patient name, registration time and discharge time are the same, but the diagnosis code is different. I am trying to get to a point where the final list has one line for each patient/reg time/disch time are the same, and have additional columns for each diag code. Look at this example:

    Name Reg Time Disch Time Diag Code
    Joe Smith 10/1/2010 10/2/2010 401.1
    Joe Smith 10/1/2010 10/2/2010 402.1
    Joe Smith 10/1/2010 10/2/2010 403.1

    My finished product would look like this:

    Name Reg Time Disch Time Diag Code1 Diag Code2 Diag Code3
    Joe Smith 10/1/2010 10/2/2010 401.1 402.1 403.1

    Is there a way (using formulas, etc.), that I could do this relatively quickly? I have 104,000 lines of data that I need to sift through.

    Any help would be appreciated.

    Thanx,
    T_Van
    Last edited by T_Van; 02-27-2012 at 05:38 PM.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Multiple lines of similar data to one single line

    I am assuming each patient has 3 Diag code. I put a formula in the sample file to extract the data. What you might want to do is 1) Copy and paste all formula into values, then use autofilter to delete all the blanks.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    Chesterfield, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple lines of similar data to one single line

    JieJenn,

    Thanks for the quick response!

    There may be some lines that have 1 diag code, some that have 2, and a few that may have 4 codes. Will this formula set-up work in a similar fashion?

    Thanx,
    T_Van

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Multiple lines of similar data to one single line

    If you post a sample file I can probably write a macro for it.

  5. #5
    Registered User
    Join Date
    02-27-2012
    Location
    Chesterfield, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple lines of similar data to one single line

    JieJenn,

    I have some slightly good news - we can use one particular field (encounter ID) as the basis.

    I have attached a list of 229 lines with 2 columns: encounter ID and ICD9 (Diag code). My goal is to have a list of data with one instance of each encounter ID, and separate columns (or one column) with all of the associated diag codes on that same line.

    I appreciate any help you could give.

    Thanx,
    T_Van
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Multiple lines of similar data to one single line

    So is your company hiring? haha.....
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-27-2012
    Location
    Chesterfield, MI
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple lines of similar data to one single line

    That worked! Thanks, JieJenn...

    You'd have to relocate to the Detroit area. Be careful what you wish for...

    T_Van

  8. #8
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Multiple lines of similar data to one single line

    Oh darn. I didn't know Chesterfield is that close to Detroit. Just moved to SF from Chicago like 6 months ago and I thought I still remember Michigan. Guess not.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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