ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Return the end of month date from a date (https://www.excelbanter.com/excel-worksheet-functions/5238-return-end-month-date-date.html)

Steve F.

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.

Bob Phillips

=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.




Frank Kabel

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.



mzehr

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