Auto filter by month

S

stuart noble

Auto filter does pretty much everything I need apart from filtering by
month. Col A contains dd/mm/yy type dates, and at the moment I have the date
repeated in a mmm format in col B i.e. if(a1,a1,""), so the only purpose of
B is the auto filter. This is fine except I have to remember how many cells
I've entered the formula into in column B. Is there a way to generate it
automatically when data is entered in A?
Any help appreciated or, if I'm going about this the wrong way, alternative
suggestions much appreciated.
 
J

JMay

In most similar situations in Column B I would use a formula

=YEAR(A10)&"-"&TEXT(MONTH(A10),"00")

HTH
 
A

Arvi Laanemets

Hi

=IF(A1="","",A1)

and to avoid resetting the autofilter every time you add some row(s), select
the would-be datarange before setting autofilter on.


Arvi Laanemets
 
A

Andy Brown

Stuart,

You could use event code that "does stuff" in column B whenever column A (or
a given range within same) is updated. However, I'm guessing you're not
aware of AutoFilter's Custom option, which you can use to show rows where
column A is greater than or equal to 01/01/2003 *and* less than 01/02/2003
(examples in format dd/mm/yyyy).

Rgds,
Andy
 
S

stuart noble

stuart noble wrote in message ...
Cheers Debra. Much appreciated.

At first glance it seems that neither of these can accommodate data
validation from a list, which is crucial in this instance.
 

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