?
Solved

Custom formula in Pivot Table

Posted on 2002-06-13
8
Medium Priority
?
608 Views
Last Modified: 2010-08-05
I am fiddling about with a Pivot Table to analyse my mobile phone bill and have come up against a small problem. I have been able to organise the Pivot Table as follows:

                            Call Type
Person Called     Data                  SMS   Voice Call
Person1          Sum of Charge Amount
          Sum of Duration
          Count of Call Type

(I appreciate that EE will change the layout of the table due to fonts, but if you cut and paste into notepad, you should be able to recreate it).

Basically, what I want to be able to do is to add a new row Average call cost. The only problem is that for SMS I want it to be the "sum of charge amount" / "count of call type" and for Voice Call "sum of charge amount" / ("Sum of duration" * 25 * 60). I'm obviously doing something wrong, since inserting a new row myself and altering the formula doesn't seem to work. Given that the duration of an SMS is always 0 and I want to avoid horrid "#DIV/0!" messages in the table, I would prefer to only have one row (i.e. I would prefer not to have two averages, one by duration and the other by count).

Hopefully, I'm missing something simple???
0
Comment
Question by:gd2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7075056
You have to use the IF to check the "sum of duration"=0.
Now, i have as separator the , in the formula, you might have the ; instead.

if( "sum of duration" = 0, 0 , "sum of charge amount" / ("Sum of duration"  * 25 * 60))

CHeers
0
 
LVL 1

Author Comment

by:gd2000
ID: 7077770
That doesn't seem to work for me. I'm trying to insert a calculated field (i.e. a new row), which is dependant on the call type. Also the formula doesn't seem to recognise the rows "Sum of duration" etc. despite the fact that they're there (it only seems to allow me to have information from the source data; i.e. duration per call etc.)
0
 
LVL 1

Expert Comment

by:packhorse
ID: 7080558
Hi qd2000

Have you thought of putting the Sum of Charge Amount,     Sum of Duration and Count of Call Type as columns with SMS and Voice as two rows for each person.  Then you could put a formula in the column alongside the pivot table that does just what you want.

Regards

Packhorse
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:gd2000
ID: 7083233
Have something similar to that - but I wanted this as part of the Pivot Table, so updates are controlled within the pivot table.

Is what I'm asking for possible? I know simple calculations are possible, but surely an "if" statement is allowed?
0
 
LVL 44

Expert Comment

by:bruintje
ID: 7215030
any progress here?
0
 
LVL 1

Author Comment

by:gd2000
ID: 7228089
No progress whatsoever. The suggestions were not what I was looking for.

What would you recommend I do bruintje?
0
 
LVL 44

Expert Comment

by:bruintje
ID: 7456756
Hello gd2000

this question is open for more then 2 months
time to clean up
if not stated otherwise

my recommendation will be
-PAQ and refund
-this will be finalized by an EE Moderator
-with no further update (23.11.2002)

PLEASE DO NOT ACCEPT THIS COMMENT AS ANSWER

HAGD:O)Bruintje
posted by ToolzEE v1.0
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7488930
Per recommendation, points refunded and question closed.

Netminder
EE Admin
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question