Count the number of patients assigned per employee

srburk

Board Regular
Joined
Mar 25, 2002
Messages
154
My employees submit a daily spreadsheet listing each doctor's name, the number of patients scheduled for that doctor, and the name of the employee assisting the provider.

Doctor A 5 Tom
Doctor B 3 Frank
Doctor C 8 Crystal
Doctor D 2 Tom
Doctor E 1 Tom
Doctor F 2 Tom
Doctor G 6 Frank
Doctor H 9 Crystal

I would like for the sheet to automatically calculate the number of patients each employee ends up providing services for. The doctors are only listed once but the employees could be assigned multiple doctors. From the data above, I would like to see a result that shows:

Tom 10
Frank 9
Crystal 17

Such a result would show to me that the work is not spread out evenly.

How would I calcalulate the range to count the sum of patients per employee?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
the sumif function should work. List the names of each employee and then simply
=sumif(C1:C100,F1,B1:B100) where F1 is the name in the list you made
 
Upvote 0
use sumif

so for tom....
=SUMIF(C$1:C$20,"tom",B$1:B$20)

adds up column B1 thru B20 where column C = tom
 
Upvote 0
or sumproduct

Code:
=SUMPRODUCT((C2:C9="Tom")*(B2:B9))
 
Upvote 0
My employees submit a daily spreadsheet listing each doctor's name, the number of patients scheduled for that doctor, and the name of the employee assisting the provider.

Doctor A 5 Tom
Doctor B 3 Frank
Doctor C 8 Crystal
Doctor D 2 Tom
Doctor E 1 Tom
Doctor F 2 Tom
Doctor G 6 Frank
Doctor H 9 Crystal

I would like for the sheet to automatically calculate the number of patients each employee ends up providing services for. The doctors are only listed once but the employees could be assigned multiple doctors. From the data above, I would like to see a result that shows:

Tom 10
Frank 9
Crystal 17

Such a result would show to me that the work is not spread out evenly.

How would I calcalulate the range to count the sum of patients per employee?
One way...

If you have a list of the unique employee names:

Book1
ABCDEF
2Doctor A5Tom_Tom10
3Doctor B3Frank_Frank9
4Doctor C8Crystal_Crystal17
5Doctor D2Tom___
6Doctor E1Tom___
7Doctor F2Tom___
8Doctor G6Frank___
9Doctor H9Crystal___
Sheet1

This formula entered in F2 and copied down:

=SUMIF(C$2:C$9,E2,B$2:B$9)
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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