Matching Data

docterryt

New Member
Joined
Sep 26, 2006
Messages
8
I have a spreadsheet with one column lists the Physicians' names, while other columns lists their patients' names and the date the patient was seen. My problem........I have to count how many appts each doctor had seen during a certain quarter of the year. I may have one doctor having 250 yearly individual patient appts involving 35 patients but only 75 individual appts patients involving 15 patients in a given quarter. How do I find each Doctor's name and match his name to his patients during a specific quarter of the year.

Ultimately, I need a way to count how many individual patients appts and the number of patients seen during a specific period of time by referencing 3 columns of data.
 
How do I just count the number of doctors and patience seen during the quarters.
Thta's a bit more complex, but see below:
DocTerry.xls
ABCDEFGHI
1DoctorPatientApptDateDoctorQ1Q2Q3Q4
2SmithJones1/1/06From:1/1/061/4/061/7/061/10/06
3SmithJones15/1/06To:31/3/0630/6/0630/9/0631/12/06
4DavisJames22/1/06Smith2212
5TomsDickson28/1/06Davis1001
6SmithFred5/4/06Toms1010
7DolittleJones12/5/06Docs3334
8SmithFred25/6/06Patients4345
9WhoMathew13/7/06
10SmithMark19/8/06
11TomsLuke9/9/06
12WhoJohn21/9/06
13DolittleGandalf10/10/06
14DavisFrodo25/11/06
15WhoBolbo25/12/06
16SmithGandalf26/12/06
17SmithSaruman31/12/06
Sheet1


Formula in F7, copied across is : =COUNTDIFF(INDIRECT("A"&MATCH(F2,$C:$C,1)&":A"&MATCH(F3,$C:$C,1))) For which you need to have installed the Morefunc Add-in.
Formula in F8, copied across is : =SUMPRODUCT(--($C$2:$C$1000>=F$2),--($C$2:$C$1000<=F$3),--($B$2:$B$1000<>""))

PS. For this to work properly the appointments must be in chronological order.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
The code on F8 works great. I can't get the code, F7, that counts the doctors to work. It returns N/A for all situations.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top