How to filter the date?

G

Guest

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
 
G

Guest

Thank you very much for your suggestions
Eric

Bernard Liengme said:
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 said:
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
 

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