Edate Formula

R

ROSE2102

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?
 
R

Roger Govier

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

Elkar

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top