Pivot tables and showing unique numbers

james.cowan

New Member
Joined
Mar 8, 2004
Messages
4


I am attempting to create a pivot table that shows a list of products (eg. mars, galaxy, kitkat) against the quantity (count) of a field containing invoice numbers, but the field contains several invoices that have the same number, so I would like the pivot table to show just unique numbers. (ie. I have 200 invoices but only 150 of them are unique numbers).

I know I can do this with advanced filtering or subtotals but ideally I would like to be able to do this in a pivot table. Does anyone know if this is possible? Thanks. :oops:
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

AlohaJulio

Board Regular
Joined
Feb 10, 2004
Messages
188
When you put the invoice field in the data section, double click on it, choose Count, then click options and choose index. That should give you the count of the unique invoices, not a count of all invoice lines
 

james.cowan

New Member
Joined
Mar 8, 2004
Messages
4
Unfortunately I'm struggling to get your solution to work...my pivot table just returns either '1' or a smaller number to several decimal places when I've checked there are more unique invoices relating to that product. Is there something obvious I am doing wrong here?

Thanks.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,095
Messages
5,768,053
Members
425,451
Latest member
JohnBrooksBiddle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top