+ Reply to Thread
Results 1 to 2 of 2

PivotTable Calculated Field

  1. #1
    Registered User
    Join Date
    09-09-2018
    Location
    Missouri, USA
    MS-Off Ver
    Microsoft for Mac, Version 16.16.1, Office 365
    Posts
    37

    PivotTable Calculated Field

    I have attached a document for reference in this problem.

    I am needing to create a calculated field that is "='N- Would recommend office'/'D- Would recommend office'". When I do this it is only allows the sum, but I'm needing it to change to the average. I have another document that has this as an average so I know it is possible, I just can't figure it out.

    Background- I have almost 15000 surveys with the corresponding information in its own row. Some individuals didn't respond to a specific question so to level the playing field and only look at average for questions answered I created a composition score N/D. Again this was done on an older file and it worked perfectly.

    Any help?
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: PivotTable Calculated Field

    You want the average as in if N- is one and D- is zero, you want 0.5 per line and you do not want the sum of the averages, but the average of the sums. OK confusing so an example

    N | D
    1 | 1
    1 | 0
    0 | 0

    The average per row is 1, 0.5 and zero respectively.

    The total is 2 Ns and 1 P which is 3 and there are three rows, so the average is 1. If this is the logic you want, you will have to add a helper column to the source data. Call it NumRows and fill it with =1.

    Then the average is (N + P) / Sum of NumRows.

    I think that would get you the answer you want.

    BTW: Since you have Office 365, you should consider having the data in an Excel Table. This way if you add rows or columns all you have to do is refresh the pivot table. Tables always reference the right amount of rows, and if you added a new column, it will not be available to the pivot table.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. [SOLVED] how to see formulas in calculated field in pivottable
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 05-21-2015, 01:16 PM
  2. Calculated field in PivotTable not doing as expected
    By marketshare in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-19-2013, 05:52 AM
  3. PivotTable Calculated Field
    By Leeds in forum Excel General
    Replies: 1
    Last Post: 09-13-2011, 12:06 AM
  4. Pivottable adding calculated field?
    By Acro in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-15-2006, 12:11 PM
  5. [SOLVED] PivotTable:Using a calculated field result in another calculated f
    By Alice in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-08-2006, 12:25 PM
  6. PivotTable - Calculated Field
    By Matt M HMS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-01-2006, 11:55 AM
  7. Replies: 0
    Last Post: 09-27-2005, 11:05 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