Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot table, IF function, calculated item versus calculated field

Trying to make my pivot tables more useful by customizing my own formulas.

I would prefer to use the following formula within a pivot table but can't
seem to get the result I want. I'll add it to the source data if I have to
but suspect my lack of pivot table knowledge is the problem.

Assume Source data is
Description Title Period Amount
apples Miss 12 1000
pears Miss 12 500
geoff Mr 12 6000
able Mr 36 600

Formula I would add a column Yearly to the source data
=if(period=36,0,Amount)

and then take the total by Title

ie I would like a pivot table giving the outcome (yes I need the sum of
Amount so can't just filter by period)

Title Amount Yearly
Miss 1500 1500
Mr 6600 6000

I can't seem to insert an if statement in a calculate field and I need it to
evaluate each piece of source data separately which (per excel help) seems to
suggest I need a calculated item.

It just can't be this complicated!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 376
Default Pivot table, IF function, calculated item versus calculated field

Hi

If you drag title to the Row area
Drag Period to the Column area
Drag Amount to the data area you get what you want

12 36 Grand total
Miss 1500 1500
Mr 6000 600 6600

If you don't want the 36 amount to show, just Hide
the column.
You can rename the heading in the PT from 12 to Yearly
You can rename the heading Grand Total to Amount (provided you make a
space after Amount, so it is not the same as the field heading in the
source table)



Regards
Roger Govier

NomadPurple wrote:
Trying to make my pivot tables more useful by customizing my own formulas.

I would prefer to use the following formula within a pivot table but can't
seem to get the result I want. I'll add it to the source data if I have to
but suspect my lack of pivot table knowledge is the problem.

Assume Source data is
Description Title Period Amount
apples Miss 12 1000
pears Miss 12 500
geoff Mr 12 6000
able Mr 36 600

Formula I would add a column Yearly to the source data
=if(period=36,0,Amount)

and then take the total by Title

ie I would like a pivot table giving the outcome (yes I need the sum of
Amount so can't just filter by period)

Title Amount Yearly
Miss 1500 1500
Mr 6600 6000

I can't seem to insert an if statement in a calculate field and I need it to
evaluate each piece of source data separately which (per excel help) seems to
suggest I need a calculated item.

It just can't be this complicated!

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 table calculated field or item craig Excel Worksheet Functions 4 February 1st 10 02:43 AM
pivot table calculated field or item craig Excel Discussion (Misc queries) 0 January 29th 10 04:08 AM
Calculated Field and Calculated Item in Pivot Table Fred Smith Excel Discussion (Misc queries) 0 March 4th 07 08:15 PM
pivot table formulas for calculated field or calculated item Vicky Excel Discussion (Misc queries) 3 June 6th 06 05:06 AM
Pivot Table Calculated field item Tim Excel Discussion (Misc queries) 1 September 24th 05 12:31 AM


All times are GMT +1. The time now is 12:49 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"