+ Reply to Thread
Results 1 to 3 of 3

Custom Field to Calculate Percentage

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Pleasant Hill, CA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Custom Field to Calculate Percentage

    I have a pivot table that analyzes test results. Assume three fields: Test, Result and Failure. If a test resulted in a failure then there is 1 in this field; otherwise there is a 0. There are several test results for each test. I want to calulate the percentage of failures for each test. I have selected Test for Row Labels. I cannot figure out how to calulate the percentage. Basically, the formula equates to =SUM(Failures)/COUNTA(Test). In other words, for each test add the failures and divide by the total number of results for that test.

    Any help is greatly appreciated.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Custom Field to Calculate Percentage

    Hi and welcome to the forum,

    I think to calculate a percentage in PivotTable all you need to do is add again the same field in Sum Values then go Value Field settings, go to Show Values As and select %Running Total in.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Pleasant Hill, CA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Custom Field to Calculate Percentage

    Thanks for the reply, but I don't think this works. I assume you meant to add the Failure field with the Sum operation then set Show Value As. There is no % Running Total In, but I tried Running Total In. That did not seem to work. I had already tried the various settings in Show Value As, but none seemed to work.

    Any other ideas?

+ 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. Different Percentage value for each field resulting in one total.
    By mlivsey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-26-2012, 07:07 AM
  2. Replies: 3
    Last Post: 03-03-2012, 12:16 PM
  3. Custom Formatting a Percentage
    By jdmoss in forum Excel General
    Replies: 6
    Last Post: 09-12-2008, 08:58 AM
  4. [SOLVED] percentage:how do I calculate the percentage change
    By Knowledge001 in forum Excel General
    Replies: 3
    Last Post: 11-25-2005, 02:40 PM
  5. How can I calculate a percentage of a YES/NO field in a Pivot Tab
    By Robert Mitchell in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-06-2005, 09:05 AM

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