Calculating Differences between columns in a Pivot Table

G

Guest

I have a worksheet that contains sales records by person. Each record
includes the month of the sale; there can be multiple records for each
salesperson for each month. Each record also has a field that indicates the
data identifies the record as Sales or Quota.

I have set up a pivot table that shows:
Salesperson, Jan2007Sales, Jan2007Quota, Feb2007Sales, Feb2007Quota,
Mar2007Sales, Mar2007Quota, ... , Total2007Sales, Total2007Quota

Is there a way to add a column after each month that shows the difference
for that month between the Sales amount and the Quota amount:
Salesperson, Jan2007Sales, Jan2007Quota, Jan2007Diff, Feb2007Sales,
Feb2007Quota, Feb2007Diff, Mar2007Sales, Mar2007Quota, Mar2007Diff, ...
, Total2007Sales, Total2007Quota, Total2007Diff

Any help is appreciated...
 
G

Guest

I think your best bet would be to create a new column in the data named
"difference" or something like that, then input a formula like =A1-B1, copy
that down. And in the pivot table you can choose to show the difference or
not. Otherwise I have no clue how to make the pivot table do it by itself
without looking at each month individually.
 
G

Guest

try to insert a formula in the pivot you have to this for each month seperatly:

go to pivot table--> formulas--> calculated fields--> then for each month
create a formula.
 
G

Guest

Hi Nikki. Thank you for the quick response.

Because the field that identifies the record type as "Sales" is the same one
that identifies it as "Quota", I cannot create a standard calculated formula
to do this. It would look like
=RecType - RecType
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top