Count unique items in a pivot table

Blunder1

Active Member
Joined
Jun 2, 2010
Messages
250
Hi,

I need to count the number of unique items using a pivot table in excel 2003. From looking around this does not seem possible. I cannot use formulas as the sheet is too big ( 750mb and 1.5mm rows so i cant undo the whole pivot to count!)

The layout of the pivot will be two fields in the row, then i need a count of unique item in the data field. Is this possible?

Thanks in advance

Blunder
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
No. Sounds to me like you need to put your data into a database and then use a SELECT DISTINCT query on it.
 
Upvote 0
Yep. Still can't do it in 2010, in spite of many, many requests. (can do it in PowerPivot though)
 
Upvote 0
Interesting - 10 posts here, all being basically just that link. ;)
 
Upvote 0
If you're after a specific result and don't need all manner of other outputs from the pivot table it can be done. Create the pivot table in a file separate from the data taking the external data choice at the first step of the pivot table wizard, ALT-D-P. Easier if you first give the source data a normal (non-dynamic) named range. Follow the wizard and at the last step choose the option to edit in MS Query. Within MS Query edit the SQL to suit, then the 'open door' icon to exit MS Query & complete the pivot table. The resultant worksheet can be moved into the source data file if you like. If you post some sample input data & expected results I can help with the SQL.

Or instead of a pivot table, a query table might be OK?

Maybe you can reduce the file size - if you need to - by not saving the data with the pivot table. Refer PT options.

HTH

PS if you search there will be a number of old posts where I've answered similar questions. cheers
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

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
Back
Top