Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

Last months date

Hi,

I have some formula which returns me the 1st day of the month (-1) based on todays date

So today, i would get 01/04/2011 based on 13/05/2011

I want to amend that so i get the last calender day of the month, so today i would get 30/04/2011

My formula is =DAY(DATE(YEAR(B2),MONTH(B2)+1,1)-1)

where B2 = Today()

Thanks
Seamus
ASKER CERTIFIED SOLUTION
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or, if you want the whole date value for the last day of the month:

=DATE(YEAR(B2),MONTH(B2),0)

Kevin
Avatar of Seamus2626

ASKER

Thanks Kevin!

Seamus