Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to filter the date?

Does anyone have any suggestions on how to filter the date in following
example?
There is a list of date in cell A1:A10, which is always later than / equal
to today,
if today is 22 May, then the list could be 25 May, 28 May, 4 Jun, ...
and a special date is located in cell B1, which could be any date, such as
18 May or 22 May or 25 May

I would like to determine the minimum date from the list in cell A1:A10
without filtering,
25 May, 28 May, 4 Jun, ...
and including the date in cell B1 too. With the filter condition,
if the date in cell B1 is earlier than today, then ignore this date, [18 May]
if the date in cell B1 is today, then include this date, [22 May]
if the date in cell B1 is later than today, then include this date, [25 May]

Does anyone have any suggestions
Thank for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How to filter the date?

Try this:
=IF(B1<TODAY(),MIN(A1:A10),MIN(A1:A10,B1))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Eric" wrote in message
...
Does anyone have any suggestions on how to filter the date in following
example?
There is a list of date in cell A1:A10, which is always later than / equal
to today,
if today is 22 May, then the list could be 25 May, 28 May, 4 Jun, ...
and a special date is located in cell B1, which could be any date, such as
18 May or 22 May or 25 May

I would like to determine the minimum date from the list in cell A1:A10
without filtering,
25 May, 28 May, 4 Jun, ...
and including the date in cell B1 too. With the filter condition,
if the date in cell B1 is earlier than today, then ignore this date, [18
May]
if the date in cell B1 is today, then include this date, [22 May]
if the date in cell B1 is later than today, then include this date, [25
May]

Does anyone have any suggestions
Thank for any suggestions
Eric



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to filter the date?

Thank you very much for your suggestions
Eric

"Bernard Liengme" wrote:

Try this:
=IF(B1<TODAY(),MIN(A1:A10),MIN(A1:A10,B1))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Eric" wrote in message
...
Does anyone have any suggestions on how to filter the date in following
example?
There is a list of date in cell A1:A10, which is always later than / equal
to today,
if today is 22 May, then the list could be 25 May, 28 May, 4 Jun, ...
and a special date is located in cell B1, which could be any date, such as
18 May or 22 May or 25 May

I would like to determine the minimum date from the list in cell A1:A10
without filtering,
25 May, 28 May, 4 Jun, ...
and including the date in cell B1 too. With the filter condition,
if the date in cell B1 is earlier than today, then ignore this date, [18
May]
if the date in cell B1 is today, then include this date, [22 May]
if the date in cell B1 is later than today, then include this date, [25
May]

Does anyone have any suggestions
Thank for any suggestions
Eric




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
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
Filter By Date Range AcesUp Excel Discussion (Misc queries) 3 August 23rd 05 09:13 PM
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 11:02 AM.

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

About Us

"It's about Microsoft Excel"