A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Auto filter Dates by Last Number



 
 
Thread Tools Display Modes
  #1  
Old February 20th 07, 05:41 PM posted to microsoft.public.excel.misc
dalovindj
external usenet poster
 
Posts: 4
Default Auto filter Dates by Last Number

In Excel 2000, I'm trying to run an autofilter on a list of dates and I only
want it to return dates where the value of the last digit is a 1 or a 6. So
I select 'Custom' and 'Ends with' 1, and then check the 'or' box and selct
'ends with' 6.

This should work, but it doesn't seem to be reading dates in the way I need
it to. I tried pasting values, no luck. I tried changing the format of the
cells away from date, but then it gives me a number with a different ending
digit.

Very frustrating. Does anyone know how to teach Excel to read a date as a
number for the autoformat?
Ads
  #2  
Old February 20th 07, 05:59 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 9,221
Default Auto filter Dates by Last Number

Not clear what your last number (1 or 6) means ..

Perhaps you could try filtering on a helper col, something along these lines:

Assuming dates in A2 down, with last number to be taken from the "day"
Place in say, C2:
=IF(OR(RIGHT(TEXT(A2,"d"))+0={1,6}),"X","")
Copy C2 down to flag out designated rows with "X"
Then just autofilter on col C, select: X
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"dalovindj" wrote:
> In Excel 2000, I'm trying to run an autofilter on a list of dates and I only
> want it to return dates where the value of the last digit is a 1 or a 6. So
> I select 'Custom' and 'Ends with' 1, and then check the 'or' box and selct
> 'ends with' 6.
>
> This should work, but it doesn't seem to be reading dates in the way I need
> it to. I tried pasting values, no luck. I tried changing the format of the
> cells away from date, but then it gives me a number with a different ending
> digit.
>
> Very frustrating. Does anyone know how to teach Excel to read a date as a
> number for the autoformat?

  #3  
Old February 20th 07, 06:05 PM posted to microsoft.public.excel.misc
dalovindj
external usenet poster
 
Posts: 4
Default Auto filter Dates by Last Number



"Max" wrote:

> Not clear what your last number (1 or 6) means ..
>
> Perhaps you could try filtering on a helper col, something along these lines:
>
> Assuming dates in A2 down, with last number to be taken from the "day"
> Place in say, C2:
> =IF(OR(RIGHT(TEXT(A2,"d"))+0={1,6}),"X","")
> Copy C2 down to flag out designated rows with "X"
> Then just autofilter on col C, select: X
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> xdemechanik
> ---
> "dalovindj" wrote:
> > In Excel 2000, I'm trying to run an autofilter on a list of dates and I only
> > want it to return dates where the value of the last digit is a 1 or a 6. So
> > I select 'Custom' and 'Ends with' 1, and then check the 'or' box and selct
> > 'ends with' 6.
> >
> > This should work, but it doesn't seem to be reading dates in the way I need
> > it to. I tried pasting values, no luck. I tried changing the format of the
> > cells away from date, but then it gives me a number with a different ending
> > digit.
> >
> > Very frustrating. Does anyone know how to teach Excel to read a date as a
> > number for the autoformat?

  #4  
Old February 20th 07, 06:05 PM posted to microsoft.public.excel.misc
dalovindj
external usenet poster
 
Posts: 4
Default Auto filter Dates by Last Number

Dates look like this:

1/2/2006
4/5/2004
3/8/1976

I just want to retun rows where the last digit of the year is a 6 or a 1.

"Max" wrote:

> Not clear what your last number (1 or 6) means ..
>
> Perhaps you could try filtering on a helper col, something along these lines:
>
> Assuming dates in A2 down, with last number to be taken from the "day"
> Place in say, C2:
> =IF(OR(RIGHT(TEXT(A2,"d"))+0={1,6}),"X","")
> Copy C2 down to flag out designated rows with "X"
> Then just autofilter on col C, select: X
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> xdemechanik
> ---
> "dalovindj" wrote:
> > In Excel 2000, I'm trying to run an autofilter on a list of dates and I only
> > want it to return dates where the value of the last digit is a 1 or a 6. So
> > I select 'Custom' and 'Ends with' 1, and then check the 'or' box and selct
> > 'ends with' 6.
> >
> > This should work, but it doesn't seem to be reading dates in the way I need
> > it to. I tried pasting values, no luck. I tried changing the format of the
> > cells away from date, but then it gives me a number with a different ending
> > digit.
> >
> > Very frustrating. Does anyone know how to teach Excel to read a date as a
> > number for the autoformat?

  #5  
Old February 20th 07, 06:10 PM posted to microsoft.public.excel.misc
dalovindj
external usenet poster
 
Posts: 4
Default Auto filter Dates by Last Number

That formula did the trick (I just witched the D to a Y". Thanks.

"Max" wrote:

> Not clear what your last number (1 or 6) means ..
>
> Perhaps you could try filtering on a helper col, something along these lines:
>
> Assuming dates in A2 down, with last number to be taken from the "day"
> Place in say, C2:
> =IF(OR(RIGHT(TEXT(A2,"d"))+0={1,6}),"X","")
> Copy C2 down to flag out designated rows with "X"
> Then just autofilter on col C, select: X
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> xdemechanik
> ---
> "dalovindj" wrote:
> > In Excel 2000, I'm trying to run an autofilter on a list of dates and I only
> > want it to return dates where the value of the last digit is a 1 or a 6. So
> > I select 'Custom' and 'Ends with' 1, and then check the 'or' box and selct
> > 'ends with' 6.
> >
> > This should work, but it doesn't seem to be reading dates in the way I need
> > it to. I tried pasting values, no luck. I tried changing the format of the
> > cells away from date, but then it gives me a number with a different ending
> > digit.
> >
> > Very frustrating. Does anyone know how to teach Excel to read a date as a
> > number for the autoformat?

  #6  
Old February 20th 07, 06:14 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 9,221
Default Auto filter Dates by Last Number

Glad you got it adapted to suit <g>.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"dalovindj" > wrote in message
news
> That formula did the trick (I just switched the "D" to a "Y"). Thanks.



  #7  
Old February 21st 07, 02:16 AM posted to microsoft.public.excel.misc
Fred Smith
external usenet poster
 
Posts: 623
Default Auto filter Dates by Last Number

Given it's the year your looking at, you can avoid using a helper column with
the following formula:

=mod(year(a1),5)=1

--
Regards,
Fred


"dalovindj" > wrote in message
...
> Dates look like this:
>
> 1/2/2006
> 4/5/2004
> 3/8/1976
>
> I just want to retun rows where the last digit of the year is a 6 or a 1.
>
> "Max" wrote:
>
>> Not clear what your last number (1 or 6) means ..
>>
>> Perhaps you could try filtering on a helper col, something along these lines:
>>
>> Assuming dates in A2 down, with last number to be taken from the "day"
>> Place in say, C2:
>> =IF(OR(RIGHT(TEXT(A2,"d"))+0={1,6}),"X","")
>> Copy C2 down to flag out designated rows with "X"
>> Then just autofilter on col C, select: X
>> --
>> Max
>> Singapore
>> http://savefile.com/projects/236895
>> xdemechanik
>> ---
>> "dalovindj" wrote:
>> > In Excel 2000, I'm trying to run an autofilter on a list of dates and I
>> > only
>> > want it to return dates where the value of the last digit is a 1 or a 6.
>> > So
>> > I select 'Custom' and 'Ends with' 1, and then check the 'or' box and selct
>> > 'ends with' 6.
>> >
>> > This should work, but it doesn't seem to be reading dates in the way I need
>> > it to. I tried pasting values, no luck. I tried changing the format of
>> > the
>> > cells away from date, but then it gives me a number with a different ending
>> > digit.
>> >
>> > Very frustrating. Does anyone know how to teach Excel to read a date as a
>> > number for the autoformat?



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter out all the partial dates from a big list of dates? Tiwarr Excel Discussion (Misc queries) 1 September 14th 06 05:35 PM
in data/filter/auto filter sp8 Excel Worksheet Functions 2 May 12th 06 01:03 AM
Applying auto-filter with large number of rows Hari Excel Discussion (Misc queries) 3 January 30th 06 03:06 AM
Excel auto filter doesn't recoginize case - won't filter AA from A Mikey Excel Discussion (Misc queries) 1 September 29th 05 08:18 PM
Auto filter not displaying number of results in status bar. Alex Lush Excel Discussion (Misc queries) 3 August 30th 05 06:12 PM


All times are GMT +1. The time now is 01:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2004-2013 ExcelBanter.
The comments are property of their posters.