end of month

G

Guest

How do I get end of month in a field given a date?


Eg. 10/5/2004 should give me 10/31/2004

Thanks
 
M

Myrna Larson

If you have the Analysis Tool Pak installed, use its EOMONTH formula with 0 as
the 2nd argument.

If not, assuming 10/5/2004 is in A1 =DATE(YEAR(A1),MONTH(A1)+1,0)

i.e. the 0th day of next month is the last day of this month.
 

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