Return the latest date from a list of dates

  • Thread starter Thread starter davidp
  • Start date Start date
How would you adapt this if you wanted to find the latest date in a
particular month from a list of dates?
 
Assuming your dates are in column A, and the number of the month you wish to
call up is in C1........
put this in B1 and copy down.... =IF(MONTH(A1)=$C$1,A1,"")

then in D1 put this....... =MAX(B:B)

Vaya con Dios,
Chuck, CABGx3
 
How would you adapt this if you wanted to find the latest date in a
particular month from a list of dates?

Assume:

Dates: named range including all your dates. Can be in any order.
Month: named range (cell) containing the month number (1=Jan)

Array formula:

=MAX((MONTH(Dates)=Month)*Dates)

To enter an array formula, you must hold down <ctrl><shift> while hitting
<enter>. XL will place braces {...} around the formula.


--ron
 
Thanks, I will keep a note of this for future reference. Ron's method suits
my spreadsheet better in this case.

John
 

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