Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Calculations in a pivot table data set


Patrick,

Thanks for the idea for making the calculations by arranging the pivot
table as follows:

page field: company
column field: year
row field: division
data field: value

The only thing is the calculations for "profit" for all of the companies
have to appear on the same page for cross comparison purposes.

I wonder if it might be possible to create an extra column in the
dataset and to somehow do the calculation and put the calculations
there. Then go ahead and create the pivot table with the calculation for
"profit" already as one of the columns for selections.

Is there some way the calculation could be done using the vlookup
function, maybe along the lines of?:

if "company" field = pepsi:
look through whole data set for all lines with country X and year X.
When all these lines found, use these lines to make calculation for
"profits" as sum of all values where "division" = "marketing", "human
resources"

whereas
if "company" field = nike:
look through whole data set for all lines with country X and year X.
When all these lines found, use these lines to make calculation for
"profits" as sum of all vlaues where "division"= "sports",
"advertising","marketing"

etc. for each of the companies.

* Had forgotten to mention that "profits" are also calculated by country
and year for each of the companies.

Thank you and best regards.

Adam


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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 Calculations Darlene Setting up and Configuration of Excel 3 January 2nd 09 04:34 PM
Pivot Table Calculations carolini Excel Discussion (Misc queries) 1 March 8th 07 12:00 AM
Calculations in a pivot table data set Adam Nichols Excel Programming 2 July 14th 04 02:11 PM
Calculations in a pivot table data set Adam Nichols Excel Programming 0 July 14th 04 10:44 AM
calculations in large data set and in pivot table Adam Nichols Excel Programming 0 July 13th 04 10:59 PM


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