# How To Calculate Percentage In Pivot Table

Jul 6, 2012

I have a pivot table in which 50 rows data and each row contains in the end %age. End of report i get grand total but it sums the percentage column. I need to calculate percentage in the end of grand total. How can i get it.

## Pivot Table: Calculate Percentage Of X Sales To To Total Sales

Feb 20, 2008

See the attachment. I want the percentage of Car Sales to total sales of different countries automatically.

## Display Percentage Of In Pivot Table

Apr 4, 2008

I have 2 columns in a Pivot Table. One called Sum of AD Total, the other called Sum of Total Cost.

I want to add a third field that displays the Sum of AD Total as a percentage of the Sum of Total Cost.

So I assumed I would use the "% Of" facility in the "Show data as" drop down, and "Total Cost" in the Base Field drop down. But what goes in the Base item field as whenever I try and put something in I get N/A returned as a result in my PT?

I'm attaching a very simplified version.

## Pivot Table - Calculating Percentage Of Two Columns?

May 14, 2014

why it works (but it obviously does). I crabbed off the sheet, modified it with my data and the percentages calculate reliably.

What I can't figure out is that in the Pct calculation in the table is the formula:

=GETPIVOTDATA("S_FCR",PT_1,"Center",[Center],"Date",MONTH([Date]))/GETPIVOTDATA("C_ID",PT_1,"Center",[Center],"Date",MONTH([Date]))^2

The formula itself makes perfect sense in terms of the numbers and filtering involved....but why does it actually work and what does the "^2" do?

## Remove Percentage Of Row Total In Pivot Table?

Feb 7, 2014

how to remove the percentage of row total in a pivot table. I only want the sum of the row total but the percentage of row column always say 100% and I want it to be removed.

## Finding Cumulative Percentage In Pivot Table?

May 21, 2014

I have data of supplier spend and need to find percent of suppliers having top 80% spend.

How to get the cumulative spend within the pivot table itself. I can do it outside the table by calculations, but how to get the results directly using pivot table, because i am using that data in a KPI metric and a dashboard.

if not possible in pivot table, can i get it in a single step process using percentrank or percentile formula or anything else?

## Show Percentage Subtotals In Pivot Table

Jul 18, 2007

Does anyone know a setting to display pivot tables as a % of sub total automatically within the Pivot Table Settings? I have recreated a formula on the cells H:K of what I am looking for. see Attached.

## Pivot Table: Adding A Percentage Field As '% Of Subtotal'

Nov 21, 2007

In the attached Excel file, there is a pivot table.

In the Data part of the table, there are two columns. The second is the exact same field than the first one but expressed as percentage (Field settings/Options/Show field as "% of" + "Total".

The problem is: I don't want to express this field as a % of Total ('Grand total') but rather as a % of Subtotal (e.g. Danemark Total).

## Pivot Table Percentage Of All Data (including Filtered)

Oct 14, 2013

How to show my data as % of grand total and include the filtered data. Whenever I filter out a category in my pivot table the % values adjust for everything unfiltered. Is there a way to have my percentages include the filtered data?

## How To Compare Percentage Difference Between Date Range Through Pivot Table

May 9, 2014

I would like to compare % difference between date range through pivot table

Date RangeProductAmt
1st weekABC1000
2nd WeekABC2000
3rd WeekABC1259
1st weekXYZ3000
2nd WeekXYZ4000
3rd WeekXYZ2500

How to plot a Pivot table to compare the % difference between 3rd Week Vs 2nd Week Vs 1 Week for each product through pivot table?

## Excel 2007 :: Calculated Field To Get Percentage Of Two Columns In Pivot Table

Oct 2, 2013

I'm having an issue getting the correct results from a calculated field in a pivot table in Excel 2007.

In column A I have "Business Name", in B I have a sum of the amount of lines a customer has, and C is a MAX of the number of employees the customer has at their location.

In one example I have a business with sum 50 lines and max 30 employees but when I try to make the calculated field 50/30 (should equal 166%) i get 9.2% instead.

The reason appears to be because there are 18 types of lines the customer has and 18 x max 30 = 540 and 50/540 is 9.2%. In the attached example it's all the same business location so the total number of employees (30) is the same for each row and each row in the raw data is a set of lines with similar features.

I attached an example. CalcFieldProblem.xlsx

## Excel 2010 :: Adding Percentage Change Column To Pivot Table?

Mar 17, 2012

I am trying to add columns to my Excel 2010 Pivot Table to calculate % change of sales from year to year. The field name is "Year", while the item columns in the field are 2007, 2008, 2009, 2010, and 2011. How do I add a column between the years that will calculate the % change os sales up or down from the previous year?

## Calculate SE In Pivot Table?

Mar 4, 2009

Is there way to calculate the Standard Error within the Pivot Table using SE= StdDev/SQRT(n)? I've been doing it along side the pivot results, but it is really cumbersome.

## Pivot Table - How To Calculate The Number

Feb 14, 2014

I created a pivot table, but having a bit of difficulty. Here is what it tells me to do....

"...pivot tablet that calculates the number and average salaries by position."

I had no problem included in the table the average salaries by position, however I can't figure out how to calculate the number as well. It's apparently supposed to be another column since the instructions tell me to change the label above 'count' to 'number'.

## Pivot Table/Calculate The Field

Feb 23, 2009

I have attached a simple test file. The data tab has two columns in the pivot range. The third column is _not_ in the pivot range, but is there to show the result I'm trying to get with the pivot.

The idea is to count the number of people whose entry dates are greater than 2/1/2009. My third data column gives a correct result, but a similar formula in the calculated field of the pivot table gives a completely wrong result (a date), where my goal is to generate a zero, a one, or a sum of zeros and ones.

It could be a formatting issue, but that would not explain why all the pivot results have the _same_ wrong answer.

I'm new to PTs and calculated fields, and expect I've made a naive mistake that an expert could easily spot.

## Calculate Percent Of In Pivot Table

Sep 9, 2006

looking for a way to run some pivot tables on a large data table. Would like the result to show some different data extraction from the same field / column. The table is customer survey results for my employees, and the fields in question can have values from 1-5. I would like to finish the pivot table with all of these fields:

Row: Name (ok, that part is easy)

Data fields:
% of entries (column 2) that are 5
% of entries (column 2) that are 4 or 5
% of entries (column 2) that are 1 or 2
# of entries (column 2)
% of entries (column 3) that are 5
% of entries (column 3) that are 4 or 5
% of entries (column 3) that are 1 or 2
# of entries (column 3)

I'm hoping this is something I can do with calculated fields, but haven't been able to figure it out. So far all I have is a 'Count' function in the pivot wizard for the # of entries, but I'm not getting the % of entries at all. Column A = Name, Column B = 1st metric, Column C = 2nd metric. Fairly simple layout, but I have a small sample file I can attach if that's not explanatory enough.

## Calculate Average In Pivot Table

Dec 20, 2007

With Pivot Tables, there is the ability to add Grand Totals to Rows or Columns, but I want to add Averages to the end of the row instead. Can this be done? I have tried Calculated Fields but can't get the right result. Auto Merged Post;Hi again,

After I posted this I found another similar post, where the answer was that the "Average" calculation has to be done outside the pivot table, ie. there seems to be no way the pivot will give averages for rows, only grand totals.

If this is the case then I will have to work around it.... I was hoping it could be done within the pivot because I have graphs linking to the pivot and they all go spak when I update the pivot with different data. The number of columns will change all the time, meaning the average will need to be reworked. Just trying to save time!

## Calculate The Difference Between 2 Columns In Pivot Table?

Aug 14, 2014

So I am running in to a large brick wall! I have a single pivot tablet with a column for items received and then a column for items shipped. I would like to create a calculated field in the pivot table that will subtract the items received from the items shipped columns. I have attempted to add the calculated field using the tool bar but it keeps giving me "0" for every item on the pivot table when there are obvious differences.

## Calculate The Difference Between Two Columns In A Pivot Table

Aug 26, 2009

Is a way to calculate the difference between two columns in a Pivot table .

I have the data something like this in a pivot table....

Sum of MetricValueColumn LabelsRow LabelsFebruaryMarchAprilMayJuneJulyNet New My SitesNet New Team Sites0Number of Provisioned Users322059319906322372350239332914328404Total Capacity In Use (GB)1585.381722.761824.731947.772124.282262.78Total No. of My Sites208212316924682307313313134317Total No. of Team Sites101751082311396683273227940

What i need to do is to calculate the "Net New My Sites" and "Net New Team Sites" values something like this....
Net New My Sites (March) = Total No. of My Sites(March) - Total No. of My Sites(February)
Net New My Sites (April) = Total No. of My Sites(April) - Total No. of My Sites(March)

## Calculate Number Of Days Between Two Dates Within A Pivot Table?

Feb 3, 2014

I have been using Excel to display, sort and present data in a professional way. I have created a pivot table with two columns below. Column C indicates the start date. Column D indicates the completion date. Blank cells show live data. I need to determine the number of days. 1) That have been - completed - a) That were < 2 Days, b) >2 but less than a week, c) > than a week (all). I have used the following formulas. a) countif(D4:D61, "<3"), b) countifs(D4:D61, ">2", D4:D61, "<=8"). Easy for completed data. My problem is, how do I determine the number of days, live data that following the same queries as above. I have figured out I can use countif to count the number of blanks by - countif(D4:D61, "(blank)") but how to put it all together and what formula should I use. I am trying to use countifs or if statements but am totally lost.

Column C Column D
---------- ----------
06/01/2014(blank)
25/11/2013(blank)
13/12/201314/01/2014
27/12/201317/01/2014
27/12/201310/01/2014

## Pivot Table - Calculate Difference Between Two Calculated Fields

Mar 29, 2012

I have a pivot table listing different company names in the first column under 'row labels' and there are calculated fields, a count and an average in columns B and C respectively. Is it possible to insert another field in column D that calculates the difference between values in column B and C (even though they are calculated fields themselves)?

## How To Calculate Average Without Counting Missing Values In Pivot Table

Jan 23, 2014

I have a problem when Im trying to calculate averages in my pivot table. I dont know how to handle my missing values. If I leave them blank I cant get the average at all because the values end up under the dates instead of in a column next to the dates where I want them to be. If I write 0 it uses it as a value, eg 2+2+0 and i get 1,33 instead of 2. Also the zero could be a value for some of the parameters, so it's no good.

I am new to pivot tables.

## Pivot Table Fields To Calculate Delta Between Two Proceeding Columns

May 5, 2014

I have a Pivot Table. I have two Columns Currently Current Week and Previous Week. The Values are displayed as a count for the Status Field. I would like to know if it is possible to add a calculated formula that will take the count difference between Current Week and Previous Week?

## Excel 2010 :: Pivot Table Reference Is Not Valid When Moving Data And Pivot Table Together?

Mar 19, 2013

On a worksheet, I created:

- a list of data
- a pivottable based on these data

When moving this worksheet this worksheet to another workbook, the pivot table can't refresh anymore. This throws an error message "Reference is not valid". To work around this problem I need to adapt the datasource. The same occurs if the list and the pivot table are on separate sheet, with the added strange behaviour that, when data an PT are split, it is not possible to move both sheet together.

This would not be a big issue if my problem had to be solved manually. The real problem is that I need to move the sheets from a C# program.

## Calculate Percentage Of A Percentage?

Apr 26, 2013

calculating the percentage of a percentage and writing the formula for excel.

There are 295 people in a room, of the 295, 75 or 25% are mothers. (I know how to calculate 25% - 75/295 = 25.42) of the 75 mothers 35 have 3 children, 32 have 2 children and 10 have 1 child.

35 is what percent of 25%
32 is what percent of 25%
10 is what percent of 25%

## Create Pivot Table: Cannot Open Pivot Table Source File

Jan 4, 2010

I'm trying to write a macro that will create a pivot table, and am getting an Error code 1004: Cannot Open Pivot Table Source File "Sheetname". My code is below. I've tried to note what each section does, and it all seems to work well except for the Pivot Table creation.

## VBA - Adjust Pivot Table Included Fields To Match Another Pivot Table

Mar 14, 2013

I have a worksheet with two pivot tables, one of which is visible to the user. Ideally, the user should be able to change the "Row Label" field settings of the visible pivot table and then press an "update button" that then adds the same field to the second pivot table.

Ideally, the ordering of the fields should also be made similar between the two tables, though this is of less priority.

I imagine it would be something in the style of:

"If number of Pivot1 active row label fields = X then
end if"

## Pivot Table Query: Make A Pivot Table To Summarise The Data

Jan 22, 2007

attached is a spreadsheet 6 people in my area use daily(ive copied and pasted the sheet in question to a new worksheet, as the file was too big). Ive been trying for about 3 days now to make a pivot table to summarise this data.

## Calculate Percentage Of Value

Jun 21, 2014

I have a simple issue i cannot figure out how to write a formula for.

In A2 i have the number of operations.

In A4 i have the percentage of CPU usage it requires to complete those operations.

I need an output somewhere that will tell me how may operations I can get per 0.1% of CPU usage.

## Calculate The Percentage

Jan 26, 2009

I have attached a file with both a sample section of data on the first sheet and the outcome I would like on the second sheet... I would do it all manually but there are over 200,000 rows in the actual file.

The macro needs to calculate the percentage of sale for each reference number within each part number and move down to the next part number and do the same until it reaches the bottom.