Pivot Table showing a count AND and % of total

mayday1

Board Regular
Joined
Oct 5, 2007
Messages
241
I have 3 columns (A:C) - header names are PatientID, Reason, Paid

Reason is the reason for the visit, Paid shows if the visit has been paid for. So the data looks like this:

192837 Reason1 Y
459357 Reason2 Y
459379 Reason2 Y
192837 Reason1 Y
459357 Reason2 Y
342873 Reason3 N
345035 Reason2 N
459379 Reason2 Y

How can I do a pivot table that shows the results like this:
PatientID, Total number of visits by this patient, % of that patient's visits that have been paid for

Or is there a non-pivot table way to get this?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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