+ Reply to Thread
Results 1 to 2 of 2

Formula calculating AVG # of orders per patient on given date

Hybrid View

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    1

    Unhappy Formula calculating AVG # of orders per patient on given date

    I am trying to figure out a formula that calculates for the average number of studies ordered by a doc, per patient encounter on a given date. 'Per Patient Encounter' is defined as each specific date that the DOC saw the PATIENT which counts as (1) encounter.

    Here is an example of my pseudo data:

    DATE EXAM ID DOC NAME PATIENT ID AVERAGE EXAMS ORDERED PER PATIENT ENCOUNTER
    1/1/13 001 SMITH 88888
    1/1/13 002 SMITH 88888 2 (since SMITH ordered 2 exams for PAT ID 8888 on 1/1/13)
    1/2/13 003 JONES 99999
    1/2/13 004 JONES 99999 2 (since JONES ordered 2 exams for PAT ID 9999 on 1/2/13)
    1/3/13 005 SMITH 88888 1 (since SMITH ordered 1 exam for PAT ID 8888 on 1/3/13)


    Final total result I would come up with in this example is:

    SMITH (AVG EXAMS ORDERED PER PAT ENCOUNTER is 1.5 (3 exams ordered / 2 encounters)
    JONES (AVG EXAMS ORDERED PER PAT ENCOUNTER is 2 (2 exams ordered / 1 encounter)

    Assistance is GREATLY APPRECIATED!

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Formula calculating AVG # of orders per patient on given date

    Assuming your existing data are in the first four columns, but this in column E:
    =IF(A2&D2=A3&D3,"",COUNTIFS(A:A,A2,D:D,D2))
    Copy this down, then use =averageif(C:C,<doctor's name cell>,E:E) wheverever you want to put your summary
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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