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

Hello,

Sorry I accidentally sent the first message without the details. Here
it is again with the appropriate details.

Regards, Adam

Dear all,

I am wondering if anyone might have some ideas on how to do the
following calculations on a large pivot table data set. I have tried
doing it through formulas in the pivot table, but because the formula
varies according to the name of the "company" field, it`s not
straightforward. If there is an ideal way using pivot tables, that
would be good to know. But if you think there is another more
appropriate way, I`d appreciate hearing it.

This is the original email with the details on the calculation. Thank
you for your suggestions.

Best regards,

Adam Nichols

original email:

Does anyone know how would be the best way to make calculations for
"profits" for each year on a very large data set which is structured as
follows:

year company division value
1999 pepsi marketing 100
1999 pepsi humanresources 200
1998 pepsi finance 232
2000 pepsi human resources 255
1990 nike clothes 22
1999 nike sports 1003
2000 nike advertising 220
1990 nike human resources 887
1999 pepsi advertising 8322
1995 pepsi marketing 23
1999 mcdonalds food 255
1999 mcdonalds restaurants 2299
1999 mcdonalds advertising 22
1998 mcdonalds food inspection 2343

where the calculation for "profits" varies according to the field called
"company". For example (to be done for each year):

If company = pepsi:
then calculation for "profits" is sum of all the values where "division"
= "marketing","humanresources"

If company = nike:
then calculation for "profits" is sume of the values where "division" =
"sports", "advertising","marketing"

If company = mcdonalds:
then calculation for "profits" is sum of all the values where "division"
= "food", "restaurants", "food inspection"

Is there an effective way to do this through a pivot table? I have
created a pivot table and tried to create the formulas there, but since
the the formula for "profit" is not the same throughout but differs
according to the name of the company, it was not clear to me how to do
this. I also tried creating multiple formulas for "profit", one for
each of the companies, but this has generated many useless blank lines
of calculation where the formula for one company was applied to other
companies for which it does not apply. Perhaps you know of a way to
remedy this.

Or is there a more ideal and efficient way to approach doing this, apart
from through calculations in a pivot table? I`d be very interested in
hearing your suggestions.

Thank you, and I look forward to hearing from you.

Best regards,

Adam Nichols





*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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 CherylC Excel Worksheet Functions 2 November 5th 07 05:46 PM
Pivot Table Calculations Marc Excel Discussion (Misc queries) 0 October 4th 07 05:26 PM
Calculations in pivot table br549 Excel Worksheet Functions 3 December 8th 05 10:56 PM
pivot table without any calculations benb Excel Discussion (Misc queries) 1 January 26th 05 11:43 PM
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:51 AM.

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

About Us

"It's about Microsoft Excel"