+ Reply to Thread
Results 1 to 3 of 3

Pivot tables with calculated fields (one column divided by another)

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2011
    Posts
    11

    Pivot tables with calculated fields (one column divided by another)

    Hi,
    I'm using a pivot table to display my data in a more coherent way, but have run into some problems with create a calculated field. The row labels are dates (grouped by months and years), and there are two columns which are the count of A and count of B. Please note that they are counts, ie. not the sum. I'm trying to add a third column which would show count of B as a percentage of count A. However, pivot tables don't seem to handle this very well, as instead of using the count of each variable, it sums them. Any ideas on solutions?

    Thanks in advance!

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Pivot tables with calculated fields (one column divided by another)

    can you post an example to play with?
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    06-26-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2011
    Posts
    11

    Re: Pivot tables with calculated fields (one column divided by another)

    Quote Originally Posted by GeneralDisarray View Post
    can you post an example to play with?
    Sorry for the late reply! I've attached a simply workbook that you can play around with to see what I mean. The first pivot table shows that what I would like to do is possible for days, but when I group it by months and years (in second pivot table) it just shows #DIV/0!. Is there any way to get around this?

    Thanks!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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