Return the end of month date from a date
Is there a formula I can use that can return the last day of the month from a
date entered in another cell? It needs to work for all months, regardless of length of month. Ex.: 11/12/2004 is entered in A1. I want B1 to return 11/30/2004. |
=date(year(a1),month(a1)+1,0)
-- HTH RP "Steve F." <Steve wrote in message ... Is there a formula I can use that can return the last day of the month from a date entered in another cell? It needs to work for all months, regardless of length of month. Ex.: 11/12/2004 is entered in A1. I want B1 to return 11/30/2004. |
Hi
=DATE(YEAR(A1),MONTH(A1)+1,0) -- Regards Frank Kabel Frankfurt, Germany "Steve F." <Steve schrieb im Newsbeitrag ... Is there a formula I can use that can return the last day of the month from a date entered in another cell? It needs to work for all months, regardless of length of month. Ex.: 11/12/2004 is entered in A1. I want B1 to return 11/30/2004. |
Hi Steve,
If you don't have the Eomonth Function (in Analysis Toolpack) available to you use : =DATE(YEAR(A1),MONTH(A1)+1,0) "Steve F." wrote: Is there a formula I can use that can return the last day of the month from a date entered in another cell? It needs to work for all months, regardless of length of month. Ex.: 11/12/2004 is entered in A1. I want B1 to return 11/30/2004. |
All times are GMT +1. The time now is 07:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com