ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculated Field in Pivot Table (https://www.excelbanter.com/excel-discussion-misc-queries/152687-calculated-field-pivot-table.html)

xgirl

Calculated Field in Pivot Table
 
Hi, I have the following data:

Team Name Closed#
1 John 2
1 Bill 5
2 Jane 1
2 Joe 6
3 Mary 1
3 Don 2

I have a Sum of Closed and a Count of Name in the data section of my table.
I need to divide Sum of Closed by Count of Name for each Team but can't
figure out how to do that. When I try a calculated field, I only have Name
as a selection, not Count of Name.

Thanks in advance.

viji

Calculated Field in Pivot Table
 


"xgirl" wrote:

Hi, I have the following data:

Team Name Closed#
1 John 2
1 Bill 5
2 Jane 1
2 Joe 6
3 Mary 1
3 Don 2

I have a Sum of Closed and a Count of Name in the data section of my table.
I need to divide Sum of Closed by Count of Name for each Team but can't
figure out how to do that. When I try a calculated field, I only have Name
as a selection, not Count of Name.

Thanks in advance.


viji

Calculated Field in Pivot Table
 
Hi,
You can use counta to count the name and you can use autosum to sum closed#.

viji

"xgirl" wrote:

Hi, I have the following data:

Team Name Closed#
1 John 2
1 Bill 5
2 Jane 1
2 Joe 6
3 Mary 1
3 Don 2

I have a Sum of Closed and a Count of Name in the data section of my table.
I need to divide Sum of Closed by Count of Name for each Team but can't
figure out how to do that. When I try a calculated field, I only have Name
as a selection, not Count of Name.

Thanks in advance.


xgirl

Calculated Field in Pivot Table
 
Thank you Viji. When I tried that I get an incorrect value. I used this
formula in the calculated field:

=SUM(Closed)/COUNTA(Name)

For team 1 I would expect to get 3.5 but I get 7. Where have I gone wrong?

Thank you,
xgirl

"viji" wrote:

Hi,
You can use counta to count the name and you can use autosum to sum closed#.

viji

"xgirl" wrote:

Hi, I have the following data:

Team Name Closed#
1 John 2
1 Bill 5
2 Jane 1
2 Joe 6
3 Mary 1
3 Don 2

I have a Sum of Closed and a Count of Name in the data section of my table.
I need to divide Sum of Closed by Count of Name for each Team but can't
figure out how to do that. When I try a calculated field, I only have Name
as a selection, not Count of Name.

Thanks in advance.



All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com