Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

Custom formula in Pivot Table

Posted on 2002-06-13
Medium Priority
614 Views
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
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

LVL 143

Expert Comment

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

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

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

LVL 1

Author Comment

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

ID: 7215030
any progress here?
0

LVL 1

Author Comment

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

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)

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

LVL 5

Accepted Solution

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

Netminder
0

Featured Post

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 …
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
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 two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Suggested Courses
Course of the Month10 days, 2 hours left to enroll