#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Filter Date

How do you filter dates to show the last date or the last three dates in a
spreadsheet relative to the current dates on a spreadsheet, meaning without
actually entering a specific date?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Filter Date

Hi,

You can do it by auto filter and the filter by choosing costom and:

for today put equal to 09/21/2007 and
for last 3 days put grater than 09/19/2007

Thanks,
--
Farhad Hodjat


"mulehead" wrote:

How do you filter dates to show the last date or the last three dates in a
spreadsheet relative to the current dates on a spreadsheet, meaning without
actually entering a specific date?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Filter Date

I am trying to build a macro with the filter so I will have to use a fomula
without putting in a specific date, I am sorry I was not more clear on this,
Thank you Farhad for replying. Does anybody have any ideas?

"Farhad" wrote:

Hi,

You can do it by auto filter and the filter by choosing costom and:

for today put equal to 09/21/2007 and
for last 3 days put grater than 09/19/2007

Thanks,
--
Farhad Hodjat


"mulehead" wrote:

How do you filter dates to show the last date or the last three dates in a
spreadsheet relative to the current dates on a spreadsheet, meaning without
actually entering a specific date?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Filter Date

Ok. What's the formula?

If, for example, you want the last three days (ie, today, yesterday and the day
before yesterday), use something like:

Startdate = date - 3
selection.autofilter field:=1, criteria1:="<" & startdate

--
Regards,
Fred


"mulehead" wrote in message
...
I am trying to build a macro with the filter so I will have to use a fomula
without putting in a specific date, I am sorry I was not more clear on this,
Thank you Farhad for replying. Does anybody have any ideas?

"Farhad" wrote:

Hi,

You can do it by auto filter and the filter by choosing costom and:

for today put equal to 09/21/2007 and
for last 3 days put grater than 09/19/2007

Thanks,
--
Farhad Hodjat


"mulehead" wrote:

How do you filter dates to show the last date or the last three dates in a
spreadsheet relative to the current dates on a spreadsheet, meaning without
actually entering a specific date?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter the date? Eric Excel Discussion (Misc queries) 2 May 22nd 07 03:33 PM
Dupliate names with different date Filter for newest date Becky Excel Discussion (Misc queries) 1 April 8th 07 08:38 PM
Help with using filter criteria with date [email protected] Excel Worksheet Functions 1 December 14th 05 07:31 PM
Date Filter tech lead Excel Discussion (Misc queries) 1 November 18th 05 04:37 AM
Need to filter more than one date HT New Users to Excel 3 April 24th 05 08:38 PM


All times are GMT +1. The time now is 06:29 AM.

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

About Us

"It's about Microsoft Excel"