+ Reply to Thread
Results 1 to 4 of 4

Pivot Table - Calculated Field - Count and Sum

  1. #1
    Registered User
    Join Date
    05-13-2011
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Pivot Table - Calculated Field - Count and Sum

    Hey guys,

    I have a pivot table with three columns. The first column is the name of a place. The second column is the count of events at the place and the third column is the sum of views for that event. I want to create a calculated field that divides the sum of views by the count of events, but for the life of me cannot figure it out.

    In the calculated field I've tried:

    =(page views/events)
    =(sum of page views/count of events) - these are the column names
    =((sum(page views))/(count(events)))

    I know none of these are correct because I ran the calculation outside of the pivot table and have the correct value. I just want to be able to filter by this new value.

    I can provide an example if necessary.

    Thanks,
    Ryan

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Pivot Table - Calculated Field - Count and Sum

    It would be easier to work out a solution if you could attach a sample of your workbook. Remember to remove/replace any sensitive data before uploading.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Pivot Table - Calculated Field - Count and Sum

    Calculated fields always use SUM unfortunately. If you had 2010 I'd suggest PowerPivot but otherwise you'll need to do some calculations within the source data, or adjacent to the pivot table.
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    05-13-2011
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Pivot Table - Calculated Field - Count and Sum

    Thank you for replying, tuph and romperstomer. Seems like it won't work as a calculated field given romperstomper's insight. I do have 2010, though, so I'll check out PowerPivot.

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Table calculated field to count if issue "needs follow up"
    By xnukemx47 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-07-2014, 06:18 PM
  2. Count in a calculated field (Pivot Table)
    By Joćo Morsa in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-18-2013, 02:47 PM
  3. Replies: 0
    Last Post: 06-26-2012, 09:06 PM
  4. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM
  5. [SOLVED] Using a Pivot Table Calculated Field to get a Unique Count
    By Mike Struckman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2005, 02:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1