PC Review


Reply
Thread Tools Rate Thread

Pivot table for two different data variables

 
 
comp
Guest
Posts: n/a
 
      17th Dec 2004


I have the following table


Name type Cost overhead
amy C1 23 12
bob C2 129 17
cat C2 36 45
doo C2 100 32


I owuld like to create a pivot table that looks similar to:
the standard pivot table. (Please ignore type for now.)

name Data Total
amy Sum of overhead 200
Sum of cost 12
bob Sum of overhead 130
Sum of cost 23
cat Sum of overhead 90
Sum of cost 19
doo Sum of overhead 87
Sum of cost 34
Total Sum of overhead 507
Total Sum of cost 88



But with overall total (overhead + cost) for each
individual instead of total the two types separately.
Any help would be totally appreciated.
Thanks,
pac





 
Reply With Quote
 
 
 
 
JulieD
Guest
Posts: n/a
 
      17th Dec 2004
Hi

to create a calculated field in your pivot table, select a cell in the pivot
table and choose from the pivot table icon on the pivot table toolbar -
formulas - calculated field
give it a name
then after the = sign
double click on the cost field
type a +
the double click on the overhead field
then click on Add then OK
you can now hide the cost & overhead fields if you want

Cheers
JulieD


"comp" <(E-Mail Removed)> wrote in message
news:qCtwd.7700$E_6.5624@trnddc04...
>
>
> I have the following table
>
>
> Name type Cost overhead
> amy C1 23 12
> bob C2 129 17
> cat C2 36 45
> doo C2 100 32
>
>
> I owuld like to create a pivot table that looks similar to:
> the standard pivot table. (Please ignore type for now.)
>
> name Data Total
> amy Sum of overhead 200
> Sum of cost 12
> bob Sum of overhead 130
> Sum of cost 23
> cat Sum of overhead 90
> Sum of cost 19
> doo Sum of overhead 87
> Sum of cost 34
> Total Sum of overhead 507
> Total Sum of cost 88
>
>
>
> But with overall total (overhead + cost) for each individual instead of
> total the two types separately.
> Any help would be totally appreciated.
> Thanks,
> pac
>
>
>
>
>



 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      18th Dec 2004
You could add a column to the source data, and calculate the total
there. Add that field to the pivot table, and remove Cost and Overhead.

comp wrote:
> I have the following table
>
>
> Name type Cost overhead
> amy C1 23 12
> bob C2 129 17
> cat C2 36 45
> doo C2 100 32
>
>
> I owuld like to create a pivot table that looks similar to:
> the standard pivot table. (Please ignore type for now.)
>
> name Data Total
> amy Sum of overhead 200
> Sum of cost 12
> bob Sum of overhead 130
> Sum of cost 23
> cat Sum of overhead 90
> Sum of cost 19
> doo Sum of overhead 87
> Sum of cost 34
> Total Sum of overhead 507
> Total Sum of cost 88
>
>
>
> But with overall total (overhead + cost) for each
> individual instead of total the two types separately.
> Any help would be totally appreciated.
> Thanks,
> pac
>
>
>
>
>



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code that will rerun or refresh a pivot table (after new data ispasted into the original Pivot Table's Source Range) Mike C Microsoft Excel Programming 3 15th Feb 2008 07:22 AM
Filter lines containing pivot table and non pivot table data =?Utf-8?B?R3JvdmVy?= Microsoft Excel Worksheet Functions 0 24th Sep 2007 08:20 PM
How do I add multiple variables to a pivot table simulaneously =?Utf-8?B?U3JlZWppdGg=?= Microsoft Excel Misc 4 21st Jul 2006 03:42 PM
Using Pivot Table to analyze multiple variables in satisfaction survey gotesman@gmail.com Microsoft Excel Programming 1 9th Jun 2006 03:36 AM
need to extract data from a pivot table using variables instead o. =?Utf-8?B?S3lXaWxkZQ==?= Microsoft Excel Programming 0 31st Mar 2005 10:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.