Pivot table - deducting sub-totals of income and expenditure

D

DRW

In Excel 2007, I use pivot tables to analyse income and expenditure.

I would like to be able to deduct the expenditure from the income, but Excel
seems to only provide an addition for Grand Totals, not the ability to deduct.

Any suggestions gratefully received.

Many thanks.
 
E

Eduardo

Hi,
Yes you are correct, what you can do is to have another column in your file
with the difference and then you can include it in the Pivot table

hope this helps
 
D

DRW

Thanks for the suggestion.

However, I don't think that would do it. If the income is sales invoices and
the expenditure purchase invoices, then they don't necessarily match up
individually - they only match up when aggregated.
 
R

Roger Govier

Hi

I would have a second Values column in my source table.
Presumably, you have some way of identifying purchase rows from income rows.
Let's assume that column C contains a an I for Income or P for Purchase.
Let's also assume the existing Value column is column F
so in the new Values column (Value2)
=IF(C2="P",F2*-1,F2)
Copy down

Extend your PT source to contain this new Value2 column, and drag that to
the data area in place of the existing Value column.
 
D

DRW

Amazingly simple when you think about it!

Many thanks, Roger.

Might it also be great if Excel did allow deductions as well as Sum??
 

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