Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
kosciosco
 
Posts: n/a
Default Calculating fields in pivot tables


Can anyone help me.

I have used pivot tables a bit, but I am trying to get to grips with
them a bit more and I have hit a stumbling block.

I have a set of data which has two columns, one for reference which is
a unique job number, one for customer where numourous jobs can be for
each customer and a total profit for each job.

The pivot table I have built shows the total profit for each customer
and the number of jobs (using a count on reference) per customer.

What I want to do is enter a calculated field which divides the total
profit for the customer by the number of jobs to give me an average job
profit for each customer.

I have tried =Sum('Gross Profit')/Count('Job Ref') but that just
returns the gross profit by customer number.

Can anyone help?

Thanks

Simon


--
kosciosco
------------------------------------------------------------------------
kosciosco's Profile: http://www.excelforum.com/member.php...fo&userid=7068
View this thread: http://www.excelforum.com/showthread...hreadid=548926

  #2   Report Post  
Posted to microsoft.public.excel.misc
hans bal(nl)
 
Posts: n/a
Default Calculating fields in pivot tables

Suggest you do this :

Select your table and creat a pivot table.

Drag customer field to the row field area
Drag the gross profit field to the data field area 3 times.
You will see the data field sum of gross profit 2 and 3.
Right click on these fields and choose field settings
Change the settings in "count of gross profit" for #2 and "average of gross
profit" for # 3. The drag the grey field Data to the total column.

You will now get something that looks like this :




Data
Customer Sum of Gross Profit Count of Gross Profit2 Average of Gross Profit2
Jan 1357 3 452.3333333
Piet 1011 2 505.5
Grand Total 2368 5 473.6


HTH


Hans

"kosciosco" wrote:


Can anyone help me.

I have used pivot tables a bit, but I am trying to get to grips with
them a bit more and I have hit a stumbling block.

I have a set of data which has two columns, one for reference which is
a unique job number, one for customer where numourous jobs can be for
each customer and a total profit for each job.

The pivot table I have built shows the total profit for each customer
and the number of jobs (using a count on reference) per customer.

What I want to do is enter a calculated field which divides the total
profit for the customer by the number of jobs to give me an average job
profit for each customer.

I have tried =Sum('Gross Profit')/Count('Job Ref') but that just
returns the gross profit by customer number.

Can anyone help?

Thanks

Simon


--
kosciosco
------------------------------------------------------------------------
kosciosco's Profile: http://www.excelforum.com/member.php...fo&userid=7068
View this thread: http://www.excelforum.com/showthread...hreadid=548926


  #3   Report Post  
Posted to microsoft.public.excel.misc
kosciosco
 
Posts: n/a
Default Calculating fields in pivot tables


Thanks, that worked perfectly


--
kosciosco
------------------------------------------------------------------------
kosciosco's Profile: http://www.excelforum.com/member.php...fo&userid=7068
View this thread: http://www.excelforum.com/showthread...hreadid=548926

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Tables - how do I add in calculated fields? ColinS via OfficeKB.com Excel Worksheet Functions 0 April 6th 06 05:40 PM
Help Please! - Creating Function Calculated Fields within Pivot Tables ColinS Excel Worksheet Functions 0 April 5th 06 11:19 AM
add option in pivot tables to remove subtotals for fields epsoanalyst Excel Worksheet Functions 1 February 16th 06 09:26 PM
Not including blank fields in pivot tables Bhupinder Rayat Excel Worksheet Functions 1 August 23rd 05 02:58 PM
Pivot Tables - Variance and % Variance fields CraigS Excel Discussion (Misc queries) 5 January 6th 05 12:22 AM


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"