I'm looking to automatically figure out the last day of the current month from a cell that has a date it in it. Example: A1 = 02/14/08 and I want B1 to automatically calculater 02/29/08. (leap year). Thanks
I'm looking to automatically figure out the last day of the current month from a cell that has a date it in it. Example: A1 = 02/14/08 and I want B1 to automatically calculater 02/29/08. (leap year). Thanks
Try:
=EOMONTH(A1,0)
this is an Analysis Toolpak function... Tools|Addins >> Analysis Toolpak
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Without Analysis ToolPak the standard approach is
=DATE(YEAR(A1),MONTH(A1)+1,0)
or if you want something a little less transparent but a little more exotic try
=A1-DAY(A1)+32-DAY(A1-DAY(A1)+32)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks