Find a way to count the number of days worked via a pivot table?

limaalpha

New Member
Joined
Nov 1, 2013
Messages
10
I've got a dataset that lists records of resolved tickets by date and agent name (as well as a few other criteria).
I created a pivot table that has the agent names in the row field and the resolution dates in the column field so I have a daily count of number of resolved calls by agent as well as a month total per agent at the end of each row.

The resultant table is shows a blank cell on the days that the agent didn't work so I had hoped to figure out a way to get the pivot table to tell me how many days the agent worked that month as well. However even using calculated fields I cannot figure it out. Any help would be gratefully received.

A
B
C
D
E
F
G
H
3-Jul
4-Jul
5-Jul
6-Jul
7-Jul
8-Jul
Grand Totals
aaron
4
6
6
3
5
24
mark
5
4
5
6
6
26
pablo
8
7
4
5
24
Grand Totals
17
10
13
8
10
16
74

<tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If you use Count instead of Sum your grand total should show what you require. You can show both Count and Sum if you wish by adding the same field to the Values area of the pivot.
 
Upvote 0
Hi steve the fish,
The pivot table is already set to count. It's showing the individual agent count of tickets solved on any given day each row, and the total count of tickets across all agents each day per column. The current grand totals column on the far right shows the number of tickets solved for the week rather than the sum or even count of days worked by each agent for the week which I think is what you were driving towards unless I misunderstand?
 
Upvote 0
You do misunderstand yes because the grand total is summing not counting. Lets take Aaron. 4+6+6+3+5=24. So grand total is Sum. Count would show 5. Right click on one of the values inthe grnad total column. Then summarize values by. Change to count.
 
Upvote 0
You do misunderstand yes because the grand total is summing not counting. Lets take Aaron. 4+6+6+3+5=24. So grand total is Sum. Count would show 5. Right click on one of the values inthe grnad total column. Then summarize values by. Change to count.

Hi steve the fish,
I'm not getting the expected result unfortunately. It seems the grand total column, while it is summing the number of tickets per agent each row, excel already is summarizing the values by count and if I change the total column to anything else then I change the daily and weekly figures too (they sum or count etc along with the grand total).
Any other ways you can think of to get the pivot table to count the days worked based on which days the agent doesn't have a ticket count in the table?

see screen print:
35634437163_0c8f0f9c11_z.jpg
[/URL]******** async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8">*********>[/IMG]
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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