+ Reply to Thread
Results 1 to 9 of 9

Count multiple dates unique to patient

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Tampa, FL
    MS-Off Ver
    2010 Excel
    Posts
    8

    Count multiple dates unique to patient

    I need to count the number of appointments (DOS Column) that (patient name column or acct # column) occured by patient for the month. Problem is I have no unique or special character to indicate when to start/stop the count. Aside from writing individual formulas, is this possible? I have over 5000 rows of data that I need to combine the charges into a visit. Am I making sense?


    For example Jane Doe would return 2 and Harry Brown would return 1.




    POS ACCT # PATIENT NAME DOS CPT TX CODE PRI INS
    10557 11934 Doe, Jane 9/14/2012 J1561 IGG MC18
    10557 11934 Doe, Jane 9/14/2012 96413 NUR MC18
    10557 11934 Doe, Jane 9/14/2012 96415 NUR MC18
    10557 11934 Doe, Jane 9/28/2012 J1561 IGG MC18
    10557 11934 Doe, Jane 9/28/2012 96413 NUR MC18
    10557 11934 Doe, Jane 9/28/2012 96415 NUR MC18
    10557 13110 Smith, Bob 9/14/2012 J0885 BIO MC18
    10557 13110 Smith, Bob 9/14/2012 96372 NUR MC18
    10557 13110 Smith, Bob 9/21/2012 J0885 BIO MC18
    10557 13110 Smith, Bob 9/21/2012 96372 NUR MC18
    10557 13110 Smith, Bob 9/28/2012 J0885 BIO MC18
    10557 13110 Smith, Bob 9/28/2012 96372 NUR MC18
    10571 15862 Brown, Harry 9/6/2012 Q0138 OTH MC18
    10571 15862 Brown, Harry 9/6/2012 96374 NUR MC18
    10571 15073 Mister, Mr. 9/11/2012 J9310 CHM MC18
    10571 15073 Mister, Mr. 9/11/2012 J2930 STR MC18
    10571 15073 Mister, Mr. 9/11/2012 96375 NUR MC18
    10571 15073 Mister, Mr. 9/11/2012 96413 NUR MC18
    10571 15073 Mister, Mr. 9/11/2012 96415 NUR MC18
    10571 15073 Mister, Mr. 9/26/2012 J9310 CHM MC18
    10571 15073 Mister, Mr. 9/26/2012 J2930 STR MC18
    10571 15073 Mister, Mr. 9/26/2012 96375 NUR MC18
    10571 15073 Mister, Mr. 9/26/2012 96413 NUR MC18
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Count multiple dates unique to patient

    Enter all the UNIQUE patient name in a range. eg: here J2 to down. You can use Advanced Filter to getting unique names.

    Go to data >> Advance Filter.

    Top select 'Copy to another location'

    List Range: Select 'Patient name Column'

    Leave criteria range blank

    Copy to: select J1

    bottom, click 'Unique records only' then OK.

    K1, enter 1/1/2012 & format as mmm yy

    In K2, with CTRL+SHIFT+ENTER not just ENTER

    =SUM(IF(FREQUENCY(IF($C$2:$C$5000=$J2,IF(TEXT($D$2:$D$5000,"m/yyyy")=TEXT(K$1,"m/yyyy"),$D$2:$D$5000)),$D$2:$D$5000),1))

    Then copy K2, paste across & down.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Count multiple dates unique to patient

    Hi ktrobinson,

    Here's my version using a pivot table... Sample for forum(1).xlsx

    Notice that I added a few columns to your data.

    Hopefully it will be pretty straight forward.

    Let me know if this will work for you.

    Later,
    Dennis

  4. #4
    Registered User
    Join Date
    10-18-2012
    Location
    Tampa, FL
    MS-Off Ver
    2010 Excel
    Posts
    8

    Re: Count multiple dates unique to patient

    Thank you for the quick reply. I followed your steps unfortunately, the formula is returning "0" as the result. Any idea what I am doing wrong?

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Count multiple dates unique to patient

    You have to hit CTRL+SHIFT+ENTER in the first cell not just ENTER, then copy this cell, paste across & down.

    if you done successfully, you can see formula surrounded by {}

  6. #6
    Registered User
    Join Date
    10-18-2012
    Location
    Tampa, FL
    MS-Off Ver
    2010 Excel
    Posts
    8

    Re: Count multiple dates unique to patient

    I must be brain dead or missing something. Can you please look at my attachment and tell me what I am doing wrong? I greatly appreciate your help!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-18-2012
    Location
    Tampa, FL
    MS-Off Ver
    2010 Excel
    Posts
    8

    Re: Count multiple dates unique to patient

    Hi Dennis,

    Thanks so much for your help. I appreciate it!

    Regards,
    Kris

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Count multiple dates unique to patient

    You currently have January in K1, so there are no entry in DOS column in January. In K1 change to 9/1/2012 (m/d/yyyy)

  9. #9
    Registered User
    Join Date
    10-18-2012
    Location
    Tampa, FL
    MS-Off Ver
    2010 Excel
    Posts
    8

    Re: Count multiple dates unique to patient

    Ahhh it's those little details! Thanks sooo much for all of your help tonight.
    Best regards,

    Kris

+ 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