+ Reply to Thread
Results 1 to 6 of 6

Pivot Table Calculated Fields

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    19

    Pivot Table Calculated Fields

    I'm using Excel 2007, and I have a collection of rows that I'm treating sort of as a 'database' - a collection of rows, each of which is an independent record, and I'm using functions such as DCOUNT() all over the place to provide different ways of drilling down into this data.

    I'll call 3 of the particular fields in this collection of records "Category", "Item", and "Rank".

    What I want is a PivotTable where the Rows are all of the "Item" values, grouped by "Category". All values of the "Rank" field should then be listed as the column headers, and the value for a particular row / column is the # of records with a particular rank. Example:

    Please Login or Register  to view this content.
    I want this to be displayed like this:

    Please Login or Register  to view this content.
    I'm having trouble getting this to work. I can get the table layout correct, but all the cells in the "inside" of the PivotTable are empty. I figured out that I can add a new calculated field using Options -> Formulas -> Calculated Fields. But this just puts a bunch of 0s in the cells, and I can't figure out how to make it display the value I'm interested in.

    Any help appreciated.
    Last edited by bruiser; 11-01-2010 at 05:17 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pivot Table Calculated Fields

    Like attached?

    See here: http://www.techonthenet.com/excel/pi..._cells2007.php

    for how to show 0's when empty.

    You can sort descending from the Home menu|Editing section.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Pivot Table Calculated Fields

    Hmm, a little bit different than the linked sample, I think because I have column headers, and the sample doesn't. I've attached an Excel spreadsheet that demonstrates the issue, with helpful text explaining each step and the final "what do I do here" pivot table.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pivot Table Calculated Fields

    Isn't the one I added here what you want? (which is the same as I had before and seems to follow your requirements)....
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-01-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Pivot Table Calculated Fields

    Oh, hmm. I suppose it is. I thought the attached workbook was the same as the sample document.

    I couldn't figure out how to get that "Count of Rank" into the Values field, which was my problem. I thought you could only add it once and then move it around between fields, I didn't realize it could be in multiple places at once.

    I think that fixes me for now, but if I start using this and come up with another question I'll reply again. Thanks a bunch!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pivot Table Calculated Fields

    Okay, in the meantime, please mark this thread solved. Then a start a new thread if you have a new question.

+ 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