ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pivot Table Field based on two data area fields (https://www.excelbanter.com/excel-worksheet-functions/221977-pivot-table-field-based-two-data-area-fields.html)

John Sweeney

Pivot Table Field based on two data area fields
 
How do I created a calculated field in a pivot table based on two data area
fields. My pivot table has three fields:
Username
COUNT Number of Items
SUM Hours to Complete

I want to add the field AVERAGE TIME TO COMPLETE that is calculated as
=SUM Hours to Complete / COUNT Number of Items

Luke M

Pivot Table Field based on two data area fields
 
From the PivotTable toolbar, click PivotTable, Formulas, then calculated
field. Assign a name of "AVERAGE TIME TO COMPLETE"
Formula is:
=SUM(Hours to Complete)/COUNT(Number of Items)
Note that it's probably better to insert the Hours and Number using the
"insert field" button, so you get the exact formatting/name correct.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"John Sweeney" wrote:

How do I created a calculated field in a pivot table based on two data area
fields. My pivot table has three fields:
Username
COUNT Number of Items
SUM Hours to Complete

I want to add the field AVERAGE TIME TO COMPLETE that is calculated as
=SUM Hours to Complete / COUNT Number of Items


Shane Devenshire[_2_]

Pivot Table Field based on two data area fields
 
Hi,

If I understand correctly there is no need to SUM or COUNT the items in the
formula because Excel has already down it for you, then

1. Place your cursor in a row field and choose Pivot Table, Formulas,
Calculated Field.
2. Name the new field and in the Formula box enter
='SUM Hours to Complete' / 'COUNT Number of Items'

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"John Sweeney" wrote:

How do I created a calculated field in a pivot table based on two data area
fields. My pivot table has three fields:
Username
COUNT Number of Items
SUM Hours to Complete

I want to add the field AVERAGE TIME TO COMPLETE that is calculated as
=SUM Hours to Complete / COUNT Number of Items


Shane Devenshire[_2_]

Pivot Table Field based on two data area fields
 
Hi,

I also might add that SUM('SUM Hours to Complete') returns the same results
as 'SUM Hours to Complete'.

This is at the core of our requests to Microsoft to allow us access to the
detail in the pivot table cache'. By the time we access the pivot table data
with a formula the data has already been summarized by the tools, so we don't
have access to the record by record detail. Although that doesn't impact
your problem is does impact other problems that can't be solved using the
pivot table, such as calculating the MEDIAN.
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Shane Devenshire" wrote:

Hi,

If I understand correctly there is no need to SUM or COUNT the items in the
formula because Excel has already down it for you, then

1. Place your cursor in a row field and choose Pivot Table, Formulas,
Calculated Field.
2. Name the new field and in the Formula box enter
='SUM Hours to Complete' / 'COUNT Number of Items'

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"John Sweeney" wrote:

How do I created a calculated field in a pivot table based on two data area
fields. My pivot table has three fields:
Username
COUNT Number of Items
SUM Hours to Complete

I want to add the field AVERAGE TIME TO COMPLETE that is calculated as
=SUM Hours to Complete / COUNT Number of Items



All times are GMT +1. The time now is 12:03 AM.

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