PC Review


Reply
Thread Tools Rate Thread

cycling through all the possible criteria in an autofilter column

 
 
Graham Y
Guest
Posts: n/a
 
      23rd Jul 2008
I have an autofiltered list of data, that currently allows the user to
select the client from the list, then there are subtotals at the bottom,
which I use as the basis for further analysis. So my boss can see each
clients data but only one at a time.
What I want to be able to do, is via code select each possible client from
the list, apply that to the autofilter, then do the existing calcs, and move
on to the next client, do the calcs, store the data one column over, etc to
the bottom of the list.

The bit I can't figure out is how to get the list of unique clients that the
autofilter shows when one uses it manually.
Granted I could sort the data by client, create an array, run down the list
adding the next client, and create my own list; but surely the list Excel
shows must be accessable somehow.

TIA
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      23rd Jul 2008
Graham,

What you are describing can be done automatically using pivot tables.

OR

To get the list of unique values, use data / filter... / advanced filter / unique values only, copy
to another location.

HTH,
Bernie
MS Excel MVP


"Graham Y" <(E-Mail Removed)> wrote in message
news:8C30C82B-8DD8-4BC3-8CAB-(E-Mail Removed)...
>I have an autofiltered list of data, that currently allows the user to
> select the client from the list, then there are subtotals at the bottom,
> which I use as the basis for further analysis. So my boss can see each
> clients data but only one at a time.
> What I want to be able to do, is via code select each possible client from
> the list, apply that to the autofilter, then do the existing calcs, and move
> on to the next client, do the calcs, store the data one column over, etc to
> the bottom of the list.
>
> The bit I can't figure out is how to get the list of unique clients that the
> autofilter shows when one uses it manually.
> Granted I could sort the data by client, create an array, run down the list
> adding the next client, and create my own list; but surely the list Excel
> shows must be accessable somehow.
>
> TIA



 
Reply With Quote
 
Graham Y
Guest
Posts: n/a
 
      23rd Jul 2008
Thanks Bernie, I'm not sure I could do it with pivot tables, as in my result
space I have to allow for some 'extra' income to be added manually. But that
is an interesting idea.
But the advanced filter tip would work, Thanks.

"Bernie Deitrick" wrote:

> Graham,
>
> What you are describing can be done automatically using pivot tables.
>
> OR
>
> To get the list of unique values, use data / filter... / advanced filter / unique values only, copy
> to another location.
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Graham Y" <(E-Mail Removed)> wrote in message
> news:8C30C82B-8DD8-4BC3-8CAB-(E-Mail Removed)...
> >I have an autofiltered list of data, that currently allows the user to
> > select the client from the list, then there are subtotals at the bottom,
> > which I use as the basis for further analysis. So my boss can see each
> > clients data but only one at a time.
> > What I want to be able to do, is via code select each possible client from
> > the list, apply that to the autofilter, then do the existing calcs, and move
> > on to the next client, do the calcs, store the data one column over, etc to
> > the bottom of the list.
> >
> > The bit I can't figure out is how to get the list of unique clients that the
> > autofilter shows when one uses it manually.
> > Granted I could sort the data by client, create an array, run down the list
> > adding the next client, and create my own list; but surely the list Excel
> > shows must be accessable somehow.
> >
> > TIA

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use criteria in an Advanced Autofilter's single column Chilidog Microsoft Excel Programming 3 12th Feb 2008 07:54 PM
How Can I gets list of all criteria in autofilter for any column =?Utf-8?B?VmFsZXJ5?= Microsoft Excel Programming 5 5th Oct 2007 02:14 PM
Selection.AutoFilter Field / Criteria => criteria sometimes non-existing on worksheet markx Microsoft Excel Programming 1 24th Nov 2006 02:52 PM
Multiple column autofilter criteria? Possible? Microsoft Excel Programming 0 29th Dec 2004 05:43 PM
3 Criteria on one column in AutoFilter? CLR Microsoft Excel Programming 2 27th Feb 2004 02:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:20 AM.