Pivot Table

G

Guest

I have a sheet with 4 columns, let us say A through D having following values
Region-id, product-id, sales-amount, sales-quantity. Each unique region-id
can have multiple product-ids including duplicates of a product-id. Each
unique product-id can belong to several region-id, including duplicates of a
region-id.

I would like to construct a 2-dimensional pivot table where one dimension
(Pivot jargon = ROW) has region-id and another dimension (Pivot jargon =
COLUMN) has product-id. At the intersection of each row and column (Pivot
jargon = DATA) I would like to have the result of the following formula:

=(total of all sales-amount for that region-id and product-id) / (total of
all sales-quantity for that region-id and product-id).

I can do this using other worksheet formula, but I was wondering if I can do
it with pivot tables?

Any ideas?
 
D

Debra Dalgleish

You could create a calculated formula:

On the pivot table toolbar, choose PivotTable>Formulas>Calculated Field
Type a name for the field
In the Formula box, type:
=IF('sales qty'=0,0,'sales amount'/'sales qty')
substituting your field names
Click OK
 
G

Guest

Thanks, that works.

Debra Dalgleish said:
You could create a calculated formula:

On the pivot table toolbar, choose PivotTable>Formulas>Calculated Field
Type a name for the field
In the Formula box, type:
=IF('sales qty'=0,0,'sales amount'/'sales qty')
substituting your field names
Click OK
 

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