AutoFilter and PivotTable

E

Epinn

I do AutoFilter to create a subset of data. Then I want to create a PivotTable on the *subset* and do a count. I then realize PivotTable doesn't work on the subset even though the rows are hidden. It works on the entire database. To circumvent this, I do copy/paste of the subset and create the PivotTable based on the pasted version. If the range for the subset is huge, it may not be efficient to do copy/paste. What is a more efficient way to achieve the same result?

Thanks.

Epinn
 
N

Nick Hodge

Epinn

I would us a helper column in the source data, so for example if you data
covers A1:D1000, to filter say when column D is >20 then in D1 enter =D1>20

This will return TRUE/FALSE, copy this down the data. Include this data in
your pivot and set this column as a page field. This way you will filter
you data on TRUE or FALSE (> or <20)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England

(e-mail address removed)
www.nickhodge.co.uk

I do AutoFilter to create a subset of data. Then I want to create a
PivotTable on the *subset* and do a count. I then realize PivotTable
doesn't work on the subset even though the rows are hidden. It works on the
entire database. To circumvent this, I do copy/paste of the subset and
create the PivotTable based on the pasted version. If the range for the
subset is huge, it may not be efficient to do copy/paste. What is a more
efficient way to achieve the same result?

Thanks.

Epinn
 

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