Finding a maximum/minimum date in 2006

  • Thread starter Thread starter megacata
  • Start date Start date
M

megacata

Hello all,

I have a list of dates mixing years
01/05/06
01/01/07
02/05/06
03/03/07
etc..

How can I create a formula that will find out the latest year in 2006
(excluding 2007)!
It's is not a list in a database, so I don't want to use filtering or
extracting!

Thanks a lot for your help

Pierre
 
=MAX(A1:A4*(A1:A4<DATE(2007,1,1))) entered as an array formula (Control
Shift Enter)
 
Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MAX(IF(YEAR(A1:A4)=2006,A1:A4))
=MIN(IF(YEAR(A1:A4)=2006,A1:A4))

Format as DATE

Biff
 
You're welcome. Thanks for the feedback!

Biff

It works great too...
Thanks Biff!
T. Valko a écrit :
 

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

Back
Top