ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Edate Formula (https://www.excelbanter.com/excel-discussion-misc-queries/66443-edate-formula.html)

ROSE2102

Edate Formula
 

I am using the edate formula edate(A1,1). Cell A1 is 01/31/2006. The
next date is 02/28/2006 however all subsequent days are now the 28th of
each month, not the actual last day of the month. Can you please advise
how I can correct this formula?


--
ROSE2102
------------------------------------------------------------------------
ROSE2102's Profile: http://www.excelforum.com/member.php...fo&userid=9202
View this thread: http://www.excelforum.com/showthread...hreadid=503441


Roger Govier

Edate Formula
 
Hi Rose

Instead of letting A1 increment as you copy down, hold A1 constant with
the absolute reference $A$1 and let the increment increase by using
ROW(1:1). In A2
=$A$1+ROW(1:1)
As you copy down, row will increment by 1 each time and you will get the
correct end of month for the whole tear.

--
Regards

Roger Govier


"ROSE2102" wrote
in message ...

I am using the edate formula edate(A1,1). Cell A1 is 01/31/2006. The
next date is 02/28/2006 however all subsequent days are now the 28th
of
each month, not the actual last day of the month. Can you please
advise
how I can correct this formula?


--
ROSE2102
------------------------------------------------------------------------
ROSE2102's Profile:
http://www.excelforum.com/member.php...fo&userid=9202
View this thread:
http://www.excelforum.com/showthread...hreadid=503441




Elkar

Edate Formula
 
If you're looking for last days of months, then how about using the EOMONTH
function instead?

=EOMONTH(A1,1)
That would return 2/28/06

=EOMONTH(A1,2)
Returns 3/31/06

HTH,
Elkar

"ROSE2102" wrote:


I am using the edate formula edate(A1,1). Cell A1 is 01/31/2006. The
next date is 02/28/2006 however all subsequent days are now the 28th of
each month, not the actual last day of the month. Can you please advise
how I can correct this formula?


--
ROSE2102
------------------------------------------------------------------------
ROSE2102's Profile: http://www.excelforum.com/member.php...fo&userid=9202
View this thread: http://www.excelforum.com/showthread...hreadid=503441




All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com