+ Reply to Thread
Results 1 to 3 of 3

finding repeat admissions

  1. #1
    Registered User
    Join Date
    07-21-2008
    Location
    New Zealand
    Posts
    35

    finding repeat admissions

    I have a clinical database that has duplicate patient numbers in one column and dates (which will also contain duplicates) in the other. What I am trying to find are those patients that have visited the hospital more than once in any given day. The list is over 17000 lines so obviously I cannot do this manually.

    So far I have used COUNTIF(X:X, X1)>1 to search column X for patient number duplicates. It narrows it down to 5000, which is still too big to search manually.

    How can I ask Excel to search out patient numbers that have the same admission date compared to those that have different admission dates?

    I have attached a truncated file with doctored numbers and highlighted 2 examples of what I mean.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Using your example file
    C1: Count
    C2: =SUMPRODUCT(--($A$2:$A$160=A2),--($B$2:$B$160=B2))
    Copy from C2 down to C160
    Select C1, Data, Filter, Autofilter
    Select the drop down in C1, then Custom, Greater than, 1, OK

    This will bring back the items that have multiple appearances.

    You don't say what data you want to return.....

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    07-21-2008
    Location
    New Zealand
    Posts
    35
    thanks

    that appears to show multiple admissions on any given day.

    very clever

+ 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