Finding the last day of a month

C

comotoman

i know how to find the first day of a month but how can i find the last
day of a month?

October 2005 First day is Sat 1st. I also need the formula to find Mon
31st.

Thanks
 
C

Chip Pearson

The 0th day of the next month is the last day of the current
month. Therefore, you can use a formula like

=DATE(2005,11,0)

to return the last day in October, 2005.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"comotoman"
message
news:[email protected]...
 
G

Gary''s Student

If the date is in A1, then enter:

=DATE(YEAR(A1),MONTH(A1)+1,1)-1 in a cell to get the last day of that month
 
D

Dave Peterson

Or just:

=DATE(YEAR(A1),MONTH(A1)+1,0)



Gary''s Student said:
If the date is in A1, then enter:

=DATE(YEAR(A1),MONTH(A1)+1,1)-1 in a cell to get the last day of that month
 
Top