Solved

Custom formula in Pivot Table

Posted on 2002-06-13
8
590 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
8 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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
Comment Utility
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
Comment Utility
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

by:gd2000
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 44

Expert Comment

by:bruintje
Comment Utility
any progress here?
0
 
LVL 1

Author Comment

by:gd2000
Comment Utility
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
Comment Utility
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
Comment Utility
Per recommendation, points refunded and question closed.

Netminder
EE Admin
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now