PC Review


Reply
Thread Tools Rate Thread

calculation in pivot table with value of a column

 
 
=?Utf-8?B?ZGF3bl9kdWRsZXk=?=
Guest
Posts: n/a
 
      10th Jul 2007
Hi -

How do I make a formula in a pivot table based on the value of a column?
I have a pivot table with the results of totals by employee number of 4
types of loans, type 1, type 2, type 3 and type 4. I get the count and
amount of the loans by employee. I want to add type 1 to type 3 for each
employee and get a total count and total amount. I am stuck.

Example Data

Employee
Number Type Amount
457 Type 1 $578,459.00
922 Type 1 $4,578,884.00
922 Type 3 $588,900.50
311 Type 4 $657,844.00
457 Type 2 $9,587.00
457 Type 3 $654,789.00
311 Type 1 $159,753.00
922 Type 2 $258,456.00
311 Type 3 $951,753.00
457 Type 4 $987,357.00
311 Type 1 $111,111.00
311 Type 1 $544,852.00
311 Type 3 $54,897.00
922 Type 4 $95,187.00
922 Type 2 $175,844.00
311 Type 3 $247,544.00
457 Type 1 $9,875.00
311 Type 2 $10,079.00
922 Type 3 $600,457.00
311 Type 4 $578,155.00

I get a pivot similar to this

Emp # Type 1 Type 2 Type 3
Type 4
Count $ Count $ Count $
Count $
311 3 815716 1 10079 3 1254194 2 1235999
457 2 588334 1 9587 1 654789 1 987357
922 1 4578884 2 434300 2 1189357.5 1 95187

How do I use the calculated field to add Type 1 and 3 together?

Thanks so much!
 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      11th Jul 2007
In the pivot table, select one of the cells that has a Type heading
On the pivot table toolbar, choose PivotTable>Formulas>Calculated Item
Type a name for the calculated item, and in the formula box type:
='Type 1'+'Type 3'

This won't work if you have added a field to the pivot table twice. If
your source data only has three columns, as in your example, you'd need
another field that you can use to create the count.

dawn_dudley wrote:
> Hi -
>
> How do I make a formula in a pivot table based on the value of a column?
> I have a pivot table with the results of totals by employee number of 4
> types of loans, type 1, type 2, type 3 and type 4. I get the count and
> amount of the loans by employee. I want to add type 1 to type 3 for each
> employee and get a total count and total amount. I am stuck.
>
> Example Data
>
> Employee
> Number Type Amount
> 457 Type 1 $578,459.00
> 922 Type 1 $4,578,884.00
> 922 Type 3 $588,900.50
> 311 Type 4 $657,844.00
> 457 Type 2 $9,587.00
> 457 Type 3 $654,789.00
> 311 Type 1 $159,753.00
> 922 Type 2 $258,456.00
> 311 Type 3 $951,753.00
> 457 Type 4 $987,357.00
> 311 Type 1 $111,111.00
> 311 Type 1 $544,852.00
> 311 Type 3 $54,897.00
> 922 Type 4 $95,187.00
> 922 Type 2 $175,844.00
> 311 Type 3 $247,544.00
> 457 Type 1 $9,875.00
> 311 Type 2 $10,079.00
> 922 Type 3 $600,457.00
> 311 Type 4 $578,155.00
>
> I get a pivot similar to this
>
> Emp # Type 1 Type 2 Type 3
> Type 4
> Count $ Count $ Count $
> Count $
> 311 3 815716 1 10079 3 1254194 2 1235999
> 457 2 588334 1 9587 1 654789 1 987357
> 922 1 4578884 2 434300 2 1189357.5 1 95187
>
> How do I use the calculated field to add Type 1 and 3 together?
>
> Thanks so much!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
 
=?Utf-8?B?ZGF3bl9kdWRsZXk=?=
Guest
Posts: n/a
 
      11th Jul 2007
Debra -

Worked perfectly! We are so happy, you made three of us so happy! I love
the microsoft community.

Dawn Dudley

"Debra Dalgleish" wrote:

> In the pivot table, select one of the cells that has a Type heading
> On the pivot table toolbar, choose PivotTable>Formulas>Calculated Item
> Type a name for the calculated item, and in the formula box type:
> ='Type 1'+'Type 3'
>
> This won't work if you have added a field to the pivot table twice. If
> your source data only has three columns, as in your example, you'd need
> another field that you can use to create the count.
>
> dawn_dudley wrote:
> > Hi -
> >
> > How do I make a formula in a pivot table based on the value of a column?
> > I have a pivot table with the results of totals by employee number of 4
> > types of loans, type 1, type 2, type 3 and type 4. I get the count and
> > amount of the loans by employee. I want to add type 1 to type 3 for each
> > employee and get a total count and total amount. I am stuck.
> >
> > Example Data
> >
> > Employee
> > Number Type Amount
> > 457 Type 1 $578,459.00
> > 922 Type 1 $4,578,884.00
> > 922 Type 3 $588,900.50
> > 311 Type 4 $657,844.00
> > 457 Type 2 $9,587.00
> > 457 Type 3 $654,789.00
> > 311 Type 1 $159,753.00
> > 922 Type 2 $258,456.00
> > 311 Type 3 $951,753.00
> > 457 Type 4 $987,357.00
> > 311 Type 1 $111,111.00
> > 311 Type 1 $544,852.00
> > 311 Type 3 $54,897.00
> > 922 Type 4 $95,187.00
> > 922 Type 2 $175,844.00
> > 311 Type 3 $247,544.00
> > 457 Type 1 $9,875.00
> > 311 Type 2 $10,079.00
> > 922 Type 3 $600,457.00
> > 311 Type 4 $578,155.00
> >
> > I get a pivot similar to this
> >
> > Emp # Type 1 Type 2 Type 3
> > Type 4
> > Count $ Count $ Count $
> > Count $
> > 311 3 815716 1 10079 3 1254194 2 1235999
> > 457 2 588334 1 9587 1 654789 1 987357
> > 922 1 4578884 2 434300 2 1189357.5 1 95187
> >
> > How do I use the calculated field to add Type 1 and 3 together?
> >
> > Thanks so much!

>
>
> --
> Debra Dalgleish
> Contextures
> 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
Pivot table header column included in calculation Lori99 Microsoft Excel Misc 0 5th Dec 2007 03:39 AM
Pivot Table: new column with a calculation =?Utf-8?B?QmV0aHNoZXA=?= Microsoft Excel Worksheet Functions 1 27th Apr 2007 01:47 AM
Pivot Table Calculation gti_jobert Microsoft Excel Programming 0 12th Jul 2006 11:25 AM
pivot table calculation tedy Microsoft Excel Programming 8 2nd Nov 2005 12:39 PM
Pivot table: calculation outside Nikolaus Hiebaum Microsoft Excel Misc 2 22nd May 2004 07:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.