Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default sum unique in pivot table

I've got following table:

Invoice Contract Amount Client Assignement
#N/D GIFE 0051/08
#N/D GIFE 0091/08
1008-08 2008.30.3009 555.00 BMG 1008-08
1008-08 2008.30.3009 555.00 BMG 1009-08
#N/D GIFE 104/08
116-08 2008.30.3009 606.40 BMG 116-08
#N/D GIFE 119/08
151-08 2008.30.3011 606.40 BMG 151-08
#N/D GIFE 164/08

In this table, Assignements are unique, but Invoices aren't.
I'd like to summarize my data so that I get the sum of unique
Invoices; as you can see in row four, Assignements 1008-08 and 1009-08
are both covered under Invoice 1008-08, for an Amount of 555.00; I've
paid 555.00, not 1110.00; I entered it twice to have in any row the
whole information.

If I try to build a pivot table, I get for Invoice 1008-08 a sum of
1100.00, which is the standard behaviour: is there a way to sum only
unique values in a pivot table?
How could I solve this question otherwise?

Please tell me if in your opinion this is only a problem in the layout
of my table... e.g. I could leave blank any second, third, fourth
"Amount" of the same "Invoice" (which is what I've done now, waiting
for more elegant solutions).
Ciao,
Dan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default sum unique in pivot table

Use another column, with the formula

=COUNTIF($A$1:$A2,A2)=1

starting in row 2 of that column, then copy down. It will return TRUE for the first instance of the
Invoice number (assumed to be in column A). Then add that field to your pivot table and use it to
show TRUE only.

What you really should do is set up a true database to track charges and payments:

Invoice Amount Action
1008-08 550 Paid
1008-08 -550 Charged

etc. The other items could go in other tables...

HTH,
Bernie
MS Excel MVP


"morodan" wrote in message
...
I've got following table:

Invoice Contract Amount Client Assignement
#N/D GIFE 0051/08
#N/D GIFE 0091/08
1008-08 2008.30.3009 555.00 BMG 1008-08
1008-08 2008.30.3009 555.00 BMG 1009-08
#N/D GIFE 104/08
116-08 2008.30.3009 606.40 BMG 116-08
#N/D GIFE 119/08
151-08 2008.30.3011 606.40 BMG 151-08
#N/D GIFE 164/08

In this table, Assignements are unique, but Invoices aren't.
I'd like to summarize my data so that I get the sum of unique
Invoices; as you can see in row four, Assignements 1008-08 and 1009-08
are both covered under Invoice 1008-08, for an Amount of 555.00; I've
paid 555.00, not 1110.00; I entered it twice to have in any row the
whole information.

If I try to build a pivot table, I get for Invoice 1008-08 a sum of
1100.00, which is the standard behaviour: is there a way to sum only
unique values in a pivot table?
How could I solve this question otherwise?

Please tell me if in your opinion this is only a problem in the layout
of my table... e.g. I could leave blank any second, third, fourth
"Amount" of the same "Invoice" (which is what I've done now, waiting
for more elegant solutions).
Ciao,
Dan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unique count in Pivot Table omsoft Excel Worksheet Functions 0 February 22nd 08 02:54 PM
pivot table-get unique count 00George00 Excel Discussion (Misc queries) 1 September 8th 06 01:00 AM
Pivot table: how to count unique? need help! luiss Excel Discussion (Misc queries) 8 June 17th 06 02:18 AM
unique records in Pivot Table lucas Excel Discussion (Misc queries) 2 February 6th 06 04:22 PM
Count Unique in Pivot Table Nelson Excel Discussion (Misc queries) 6 April 10th 05 10:05 PM


All times are GMT +1. The time now is 01:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"