Is there a function that gives us the last day of a month

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to get the last day of a month i.e 30/nov/05 out of todays date.
How do I go about this? Its driving me crazy.

Any help appreciated

Gordon
 
Go to Tools->Add-ins and make sure you have Analysis Toolpak checked, so that
you have access to

=EOMONTH()
 
Assuming A1 contains the date: 11/10/2005

If you want the number of days in a given month:
=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))

If you want the last day of a given month:
=DATE(YEAR(A1),MONTH(A1)+1,0)

HTH,
Paul
 
Where A1 contains a date:


If you have the Analysis ToolPak installed:
=EOMONTH(A1,0)

Using regular Excel functions:
=DATE(YEAR(A1),MONTH(A1)+1,0)

Does that help?

••••••••••
Regards,
Ron
 

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