# 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 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.

## 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)?

## 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?

## Calculate Difference Between 2 Rows In Data Table?

Aug 7, 2013

I have a data table with incidents in which one column is equipment number and one is data of occurrence. I now need to calculate how long ago the same equipment number occurred.

## Calculate Difference Between Dates In Two Columns?

Mar 4, 2014

I'm just trying to calculate the difference between dates in two columns and applying conditional formatting based on if it is a positive or negative number. But when there is a null value in either of the date columns I don't want anything returned.

So far I'm either getting a 0 or a FALSE.

Column A = Date 1 Column B = Date 2 Column C = Formula

=IF(NOT(ISBLANK(B2)), B2-A2, )

## Calculate The Average Difference Between Columns

May 4, 2009

I am trying to determine the average reduction amount of appraised property values. I have two columns in my spreadsheet. Column H has appraised value of property. Column I has the accepted value of the property. Sometimes the accepted value is the same as the appraised value, sometimes it is reduced, and sometimes it is rejected.

I want to be able to find the average reduction amount when the accepted value is less than the appraised value and is not rejected.

Column H always shows a numerical value (i.e. \$250,000), but Column I may have a numerical value or show "rejected".

## Calculate Time Difference From Two Columns

Feb 18, 2009

I want to calculate time difference from two columns,

00:00:18:4400:00:28:44
00:00:19:2400:00:29:24
00:00:34:7700:00:44:77
00:01:05:3200:01:15:32
00:01:05:3200:01:15:32

wanting the difference between col B and col a.
Sum doesn't work

## Formula To Calculate Percent Difference Between Last 2 Columns

Feb 14, 2007

See attachment. In this example, in Column D I want to calculate the percent difference between the numbers in the last 2 columns (Column B and Column C). BUT I want a formula that will automatically update if I were to insert a new column between Column C and Column D. So as a result, new numbers would go in Column D and the percent difference would now be in Column E.

## 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?

## Create Pivot Table That Has Calculated Field For The Difference In Amount

Feb 27, 2013

I have 3 fields:

Person, FinancialYear, AmountUSD
Pete, FY12, 8000
Pete, FY13, 7000
Jeff, FY12, 5000
Jeff, FY13, 5500
Sam, FY12, 4000
Sam, FY13, 3500

How to create a pivot table that has a calculated field for the difference in AmountUSD between FY12 and FY13 (for each person).

## 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.

## 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.

## 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 Average On Some Of The Columns In A Pivot?

Jul 1, 2014

I have a pivot table showing actual and forecasted sales per month for diffrent regions/sales channels/segment.

I would like to calculate the average monthly sale, for forecasted and actual data, within the pivot instead of doing it outside in columns to the right of the pivot table.

## 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

## 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.

## Add Columns To Pivot Table With A Name Like ABC

Jul 14, 2014

I have a pivot table that I create weekly to include the new week's data, as well as the rest of the weeks in the year. I'd like for the macro to pull all of the columns like "WE" into the pivot table so that it includes the current week. Below is what the code looks like now. Is there a way to tell the macro to pull columns based on "field name like" language? I've been able to get this far, but it doesn't loop the headers to find all of the columns that have WE headers.

Dim PT As PivotTable
Dim PF As PivotField
Dim FldName As String
Dim LastCol As Integer
Dim TxtStr As String
Dim wsName As String

[code]....

## Pivot Table - Row To Columns

Mar 15, 2013

I have a pivot table that shows the following:

ID_LOCATION1_LOCATION2_COUNT
1__XXAT______213_______1
_____________215________1
_____________226________1
2 XXAL______213_________1
_____________228________1
3 XXAA______213________1
_____________123________1
_____________258________1
_____________065________1

...and the list goes on for 1300 more ID items

What I need is to reformat it to show the location2 as columns one next to each other as follows:

1 XXAT 213 215 226
2 XXAL 213 228
3 XXA 213 123 258 065...

## Add Columns With Calculations In A Pivot Table

Nov 2, 2012

I have two queries regarding pivot table.

I would like to include additional columns with formula in to a pivot table

I would like to get ride of the Items in a pivot table with Zero values without editing the source data.

I have attached a work file in to the below link, [URL]....

## Can Add A Subtotal Of 3 Columns In A Pivot Table

Nov 22, 2013

I want to get a subtotal of columns B C and D in a pivot table. I have tried to add a calculated item to a pivot table to add columns B C and D. When I try adding a calcuted item I am getting an additional column inserted after columns B C and D. Each additional column has the previous column duplicated. I want a subtotal of column B C and D. I don't want to use the grand total function because I also have columns E through H that I don't want in the subtotal.

How can I get the columns B C and D subtotaled within the pivot table?

## Format Pivot Table Columns?

Oct 24, 2011

How can you visually format a column with multiple values in a pivot table? Say you have month in the column section, and three values in the value section: budget, actuals, variance; I want to visually seperate each month's set of data.

## Move Pivot Table Columns?

Mar 26, 2013

is there anyway to arrange pivot table columns without manipulating the field list items?

in other words, in older versions of excel, you could just right click the column and select move left, or move right

## Add Concatenation Of Two Columns To Pivot Table?

Jul 18, 2013

I have a large data set that I want to pivot on to produce various results. I can easily pivot on two columns to produce those Unique IDs where East AND West are "Yes" or "No." I want an easy to filter on results where either East OR West is "yes." I could do this with a joined (Concatenated column) such as East/West but was hoping there might be an easier solution built into Excel pivot feature.

Unique ID
East
West

1
Yes
No

2
Yes
Yes

3
No
Yes

4
Yes
No

5
No
No

Jan 7, 2007

Pivot Tables. The structure and subject-content of cells B3:D14 (Block A) is identical to those of cells F3:H14 (Block B). I want a pivot table to treat the two Blocks as if they occupied the same three columns (e.g. B3:D26).

## Pivot Table With Multiple Columns

Jun 28, 2007

How do I create a pivot table with multiple data columns? My fixed asset software will not let me create a report to list multiple months/ quarters. I've created a spreadsheet that I can dump each month into, but I'd like to be able to sort by G/L acct or Department. When I try to create a pivot table, I can't get it to accept each month as a data field. Ive attached a copy of the spreadsheet that I'm using & the report that I'd like it to look like.

## 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?